summaryrefslogtreecommitdiff
path: root/game/client/fx_staticline.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/fx_staticline.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/fx_staticline.h')
-rw-r--r--game/client/fx_staticline.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/game/client/fx_staticline.h b/game/client/fx_staticline.h
new file mode 100644
index 0000000..2beeb99
--- /dev/null
+++ b/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