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 /sp/src/game/client/fx_staticline.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/client/fx_staticline.h')
| -rw-r--r-- | sp/src/game/client/fx_staticline.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sp/src/game/client/fx_staticline.h b/sp/src/game/client/fx_staticline.h new file mode 100644 index 00000000..036af519 --- /dev/null +++ b/sp/src/game/client/fx_staticline.h @@ -0,0 +1,46 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+// $NoKeywords: $
+//=============================================================================//
+
+#include "clientsideeffects.h"
+
+#if !defined( FXSTATICLINE_H )
+#define FXSTATICLINE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "mathlib/vector.h"
+
+class IMaterial;
+
+#define FXSTATICLINE_FLIP_HORIZONTAL 0x00000001 //Swaps the TC's so the texture is flipped horizontally
+#define FXSTATICLINE_FLIP_VERTICAL 0x00000002 //Swaps the TC's so the texture is flipped vertically
+
+class CFXStaticLine : public CClientSideEffect
+{
+public:
+
+ CFXStaticLine( const char *name, const Vector& start, const Vector& end, float scale, float life, const char *shader, unsigned int flags );
+ ~CFXStaticLine( void );
+
+ virtual void Draw( double frametime );
+ virtual bool IsActive( void );
+ virtual void Destroy( void );
+ virtual void Update( double frametime );
+
+protected:
+
+ IMaterial *m_pMaterial;
+ Vector m_vecStart, m_vecEnd;
+ unsigned int m_uiFlags;
+ float m_fLife;
+ float m_fScale;
+};
+
+#endif
|