Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #include "clientsideeffects.h"
  10. #if !defined( FXSTATICLINE_H )
  11. #define FXSTATICLINE_H
  12. #ifdef _WIN32
  13. #pragma once
  14. #endif
  15. #include "mathlib/vector.h"
  16. class IMaterial;
  17. #define FXSTATICLINE_FLIP_HORIZONTAL 0x00000001 //Swaps the TC's so the texture is flipped horizontally
  18. #define FXSTATICLINE_FLIP_VERTICAL 0x00000002 //Swaps the TC's so the texture is flipped vertically
  19. class CFXStaticLine : public CClientSideEffect
  20. {
  21. public:
  22. CFXStaticLine( const char *name, const Vector& start, const Vector& end, float scale, float life, const char *shader, unsigned int flags );
  23. ~CFXStaticLine( void );
  24. virtual void Draw( double frametime );
  25. virtual bool IsActive( void );
  26. virtual void Destroy( void );
  27. virtual void Update( double frametime );
  28. protected:
  29. IMaterial *m_pMaterial;
  30. Vector m_vecStart, m_vecEnd;
  31. unsigned int m_uiFlags;
  32. float m_fLife;
  33. float m_fScale;
  34. };
  35. #endif