blob: 316bfdb8ac2573d736d225641ece7e9f9fa0c225 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#if !defined( FXDISCREETLINE_H )
#define FXDISCREETLINE_H
#ifdef _WIN32
#pragma once
#endif
#include "mathlib/vector.h"
#include "clientsideeffects.h"
class IMaterial;
class CFXDiscreetLine : public CClientSideEffect
{
public:
CFXDiscreetLine ( const char *name, const Vector& start, const Vector& direction, float velocity,
float length, float clipLength, float scale, float life, const char *shader );
~CFXDiscreetLine ( void );
virtual void Draw( double frametime );
virtual bool IsActive( void );
virtual void Destroy( void );
virtual void Update( double frametime );
protected:
IMaterial *m_pMaterial;
float m_fLife;
Vector m_vecOrigin, m_vecDirection;
float m_fVelocity;
float m_fStartTime;
float m_fClipLength;
float m_fScale;
float m_fLength;
};
#endif //FXDISCREETLINE_H
|