Team Fortress 2 Source Code as on 22/4/2020
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.

49 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #if !defined( FXDISCREETLINE_H )
  14. #define FXDISCREETLINE_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. #include "mathlib/vector.h"
  19. #include "clientsideeffects.h"
  20. class IMaterial;
  21. class CFXDiscreetLine : public CClientSideEffect
  22. {
  23. public:
  24. CFXDiscreetLine ( const char *name, const Vector& start, const Vector& direction, float velocity,
  25. float length, float clipLength, float scale, float life, const char *shader );
  26. ~CFXDiscreetLine ( void );
  27. virtual void Draw( double frametime );
  28. virtual bool IsActive( void );
  29. virtual void Destroy( void );
  30. virtual void Update( double frametime );
  31. protected:
  32. IMaterial *m_pMaterial;
  33. float m_fLife;
  34. Vector m_vecOrigin, m_vecDirection;
  35. float m_fVelocity;
  36. float m_fStartTime;
  37. float m_fClipLength;
  38. float m_fScale;
  39. float m_fLength;
  40. };
  41. #endif //FXDISCREETLINE_H