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.

38 lines
901 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TOGGLETEXTUREPROXY
  8. #define TOGGLETEXTUREPROXY
  9. #include "materialsystem/imaterialproxy.h"
  10. class IMaterial;
  11. class IMaterialVar;
  12. #pragma warning (disable : 4100)
  13. class CBaseToggleTextureProxy : public IMaterialProxy
  14. {
  15. public:
  16. CBaseToggleTextureProxy();
  17. virtual ~CBaseToggleTextureProxy();
  18. virtual bool Init( IMaterial *pMaterial, KeyValues *pKeyValues );
  19. virtual void OnBind( void *pC_BaseEntity );
  20. virtual void Release( void ) { delete this; }
  21. virtual IMaterial *GetMaterial();
  22. private:
  23. void Cleanup();
  24. C_BaseEntity *BindArgToEntity( void *pArg );
  25. IMaterialVar *m_TextureVar;
  26. IMaterialVar *m_TextureFrameNumVar;
  27. bool m_WrapAnimation;
  28. };
  29. #endif // TOGGLETEXTUREPROXY