diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/client/baseanimatedtextureproxy.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/client/baseanimatedtextureproxy.h')
| -rw-r--r-- | sp/src/game/client/baseanimatedtextureproxy.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/sp/src/game/client/baseanimatedtextureproxy.h b/sp/src/game/client/baseanimatedtextureproxy.h index 49107e0d..fe6a5e59 100644 --- a/sp/src/game/client/baseanimatedtextureproxy.h +++ b/sp/src/game/client/baseanimatedtextureproxy.h @@ -1,47 +1,47 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef BASEANIMATEDTEXTUREPROXY
-#define BASEANIMATEDTEXTUREPROXY
-
-#include "materialsystem/imaterialproxy.h"
-
-class IMaterial;
-class IMaterialVar;
-
-#pragma warning (disable : 4100)
-
-class CBaseAnimatedTextureProxy : public IMaterialProxy
-{
-public:
- CBaseAnimatedTextureProxy();
- virtual ~CBaseAnimatedTextureProxy();
-
- virtual bool Init( IMaterial *pMaterial, KeyValues *pKeyValues );
- virtual void OnBind( void *pC_BaseEntity );
- virtual void Release( void ) { delete this; }
- virtual IMaterial *GetMaterial();
-
-protected:
- // derived classes must implement this; it returns the time
- // that the animation began
- virtual float GetAnimationStartTime( void* pBaseEntity ) = 0;
-
- // Derived classes may implement this if they choose;
- // this method is called whenever the animation wraps...
- virtual void AnimationWrapped( void* pBaseEntity ) {}
-
-protected:
- void Cleanup();
-
- IMaterialVar *m_AnimatedTextureVar;
- IMaterialVar *m_AnimatedTextureFrameNumVar;
- float m_FrameRate;
- bool m_WrapAnimation;
-};
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef BASEANIMATEDTEXTUREPROXY +#define BASEANIMATEDTEXTUREPROXY + +#include "materialsystem/imaterialproxy.h" + +class IMaterial; +class IMaterialVar; + +#pragma warning (disable : 4100) + +class CBaseAnimatedTextureProxy : public IMaterialProxy +{ +public: + CBaseAnimatedTextureProxy(); + virtual ~CBaseAnimatedTextureProxy(); + + virtual bool Init( IMaterial *pMaterial, KeyValues *pKeyValues ); + virtual void OnBind( void *pC_BaseEntity ); + virtual void Release( void ) { delete this; } + virtual IMaterial *GetMaterial(); + +protected: + // derived classes must implement this; it returns the time + // that the animation began + virtual float GetAnimationStartTime( void* pBaseEntity ) = 0; + + // Derived classes may implement this if they choose; + // this method is called whenever the animation wraps... + virtual void AnimationWrapped( void* pBaseEntity ) {} + +protected: + void Cleanup(); + + IMaterialVar *m_AnimatedTextureVar; + IMaterialVar *m_AnimatedTextureFrameNumVar; + float m_FrameRate; + bool m_WrapAnimation; +}; + #endif // BASEANIMATEDTEXTUREPROXY
\ No newline at end of file |