aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/toggletextureproxy.h
blob: 66bd82856673f3bcbc46c3c9580d55399c4d622c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef TOGGLETEXTUREPROXY
#define TOGGLETEXTUREPROXY

#include "materialsystem/imaterialproxy.h"

class IMaterial;
class IMaterialVar;

#pragma warning (disable : 4100)

class CBaseToggleTextureProxy : public IMaterialProxy
{
public:
	CBaseToggleTextureProxy();
	virtual ~CBaseToggleTextureProxy();

	virtual bool Init( IMaterial *pMaterial, KeyValues *pKeyValues );
	virtual void OnBind( void *pC_BaseEntity );
	virtual void Release( void ) { delete this; }
	virtual IMaterial *GetMaterial();

private:
	void Cleanup();

	C_BaseEntity *BindArgToEntity( void *pArg );

	IMaterialVar *m_TextureVar;
	IMaterialVar *m_TextureFrameNumVar;
	bool m_WrapAnimation;
};

#endif // TOGGLETEXTUREPROXY