aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/clientsideeffects.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/clientsideeffects.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/clientsideeffects.h')
-rw-r--r--mp/src/game/client/clientsideeffects.h186
1 files changed, 93 insertions, 93 deletions
diff --git a/mp/src/game/client/clientsideeffects.h b/mp/src/game/client/clientsideeffects.h
index 3f1c9efa..c5aa4fd6 100644
--- a/mp/src/game/client/clientsideeffects.h
+++ b/mp/src/game/client/clientsideeffects.h
@@ -1,93 +1,93 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef CLIENTSIDEEFFECTS_H
-#define CLIENTSIDEEFFECTS_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-class Vector;
-struct FXQuadData_t;
-struct FXLineData_t;
-//-----------------------------------------------------------------------------
-// Purpose: Base class for client side effects
-//-----------------------------------------------------------------------------
-abstract_class CClientSideEffect
-{
-public:
- // Constructs the named effect
- CClientSideEffect( const char *name );
- virtual ~CClientSideEffect( void );
-
- // Update/Draw the effect
- // Derived classes must implement this method!
- virtual void Draw( double frametime ) = 0;
- // Returns name of effect
- virtual const char *GetName( void );
- // Retuns whether the effect is still active
- virtual bool IsActive( void );
- // Sets the effect to inactive so it can be destroed
- virtual void Destroy( void );
-
-private:
- // Name of effect ( static data )
- const char *m_pszName;
- // Is the effect active
- bool m_bActive;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose: Base interface to effects list
-//-----------------------------------------------------------------------------
-abstract_class IEffectsList
-{
-public:
- virtual ~IEffectsList( void ) {}
-
- // Add an effect to the list of effects
- virtual void AddEffect( CClientSideEffect *effect ) = 0;
- // Simulate/Update/Draw effects on list
- virtual void DrawEffects( double frametime ) = 0;
- // Flush out all effects fbrom the list
- virtual void Flush( void ) = 0;
-};
-
-extern IEffectsList *clienteffects;
-
-class IMaterialSystem;
-extern IMaterialSystem *materials;
-
-//Actual function references
-void FX_AddCube( const Vector &mins, const Vector &maxs, const Vector &vColor, float life, const char *materialName );
-void FX_AddCenteredCube( const Vector &center, float size, const Vector &vColor, float life, const char *materialName );
-void FX_AddStaticLine( const Vector& start, const Vector& end, float scale, float life, const char *materialName, unsigned char flags );
-void FX_AddDiscreetLine( const Vector& start, const Vector& direction, float velocity, float length, float clipLength, float scale, float life, const char *shader );
-
-void FX_AddLine( const FXLineData_t &data );
-
-void FX_AddQuad( const FXQuadData_t &data );
-
-void FX_AddQuad( const Vector &origin,
- const Vector &normal,
- float startSize,
- float endSize,
- float sizeBias,
- float startAlpha,
- float endAlpha,
- float alphaBias,
- float yaw,
- float deltaYaw,
- const Vector &color,
- float lifeTime,
- const char *shader,
- unsigned int flags );
-
-// For safe addition of client effects
-void SetFXCreationAllowed( bool state );
-bool FXCreationAllowed( void );
-
-#endif // CLIENTSIDEEFFECTS_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef CLIENTSIDEEFFECTS_H
+#define CLIENTSIDEEFFECTS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+class Vector;
+struct FXQuadData_t;
+struct FXLineData_t;
+//-----------------------------------------------------------------------------
+// Purpose: Base class for client side effects
+//-----------------------------------------------------------------------------
+abstract_class CClientSideEffect
+{
+public:
+ // Constructs the named effect
+ CClientSideEffect( const char *name );
+ virtual ~CClientSideEffect( void );
+
+ // Update/Draw the effect
+ // Derived classes must implement this method!
+ virtual void Draw( double frametime ) = 0;
+ // Returns name of effect
+ virtual const char *GetName( void );
+ // Retuns whether the effect is still active
+ virtual bool IsActive( void );
+ // Sets the effect to inactive so it can be destroed
+ virtual void Destroy( void );
+
+private:
+ // Name of effect ( static data )
+ const char *m_pszName;
+ // Is the effect active
+ bool m_bActive;
+};
+
+//-----------------------------------------------------------------------------
+// Purpose: Base interface to effects list
+//-----------------------------------------------------------------------------
+abstract_class IEffectsList
+{
+public:
+ virtual ~IEffectsList( void ) {}
+
+ // Add an effect to the list of effects
+ virtual void AddEffect( CClientSideEffect *effect ) = 0;
+ // Simulate/Update/Draw effects on list
+ virtual void DrawEffects( double frametime ) = 0;
+ // Flush out all effects fbrom the list
+ virtual void Flush( void ) = 0;
+};
+
+extern IEffectsList *clienteffects;
+
+class IMaterialSystem;
+extern IMaterialSystem *materials;
+
+//Actual function references
+void FX_AddCube( const Vector &mins, const Vector &maxs, const Vector &vColor, float life, const char *materialName );
+void FX_AddCenteredCube( const Vector &center, float size, const Vector &vColor, float life, const char *materialName );
+void FX_AddStaticLine( const Vector& start, const Vector& end, float scale, float life, const char *materialName, unsigned char flags );
+void FX_AddDiscreetLine( const Vector& start, const Vector& direction, float velocity, float length, float clipLength, float scale, float life, const char *shader );
+
+void FX_AddLine( const FXLineData_t &data );
+
+void FX_AddQuad( const FXQuadData_t &data );
+
+void FX_AddQuad( const Vector &origin,
+ const Vector &normal,
+ float startSize,
+ float endSize,
+ float sizeBias,
+ float startAlpha,
+ float endAlpha,
+ float alphaBias,
+ float yaw,
+ float deltaYaw,
+ const Vector &color,
+ float lifeTime,
+ const char *shader,
+ unsigned int flags );
+
+// For safe addition of client effects
+void SetFXCreationAllowed( bool state );
+bool FXCreationAllowed( void );
+
+#endif // CLIENTSIDEEFFECTS_H