diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/client/fx_line.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/client/fx_line.h')
| -rw-r--r-- | mp/src/game/client/fx_line.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/mp/src/game/client/fx_line.h b/mp/src/game/client/fx_line.h new file mode 100644 index 00000000..f37696f8 --- /dev/null +++ b/mp/src/game/client/fx_line.h @@ -0,0 +1,59 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#if !defined( FXLINE_H )
+#define FXLINE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+struct FXLineData_t
+{
+ Vector m_vecStart;
+ Vector m_vecEnd;
+ Vector m_vecStartVelocity;
+ Vector m_vecEndVelocity;
+ float m_flStartAlpha;
+ float m_flEndAlpha;
+ float m_flStartScale;
+ float m_flEndScale;
+ float m_flDieTime;
+ float m_flLifeTime;
+
+ IMaterial *m_pMaterial;
+};
+
+#include "fx_staticline.h"
+
+class CFXLine : public CClientSideEffect
+{
+public:
+
+ CFXLine( const char *name, const FXLineData_t &data );
+
+ ~CFXLine( void );
+
+ virtual void Draw( double frametime );
+ virtual bool IsActive( void );
+ virtual void Destroy( void );
+ virtual void Update( double frametime );
+
+protected:
+
+ FXLineData_t m_FXData;
+};
+
+void FX_DrawLine( const Vector &start, const Vector &end, float scale, IMaterial *pMaterial, const color32 &color );
+void FX_DrawLineFade( const Vector &start, const Vector &end, float scale, IMaterial *pMaterial, const color32 &color, float fadeDist );
+
+#endif //FXLINE_H
\ No newline at end of file |