summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_proxyentity.h
blob: efa986c45505a0149e17a744875696fa3035714d (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: A base class for all material proxies in the tf client dll
//
// $NoKeywords: $
//=============================================================================//
#ifndef TF_PROXY_ENTITY_H
#define TF_PROXY_ENTITY_H

#include "proxyentity.h"

//-----------------------------------------------------------------------------
// Base class all translucent material proxies should inherit from
//-----------------------------------------------------------------------------
abstract_class CBaseInvisMaterialProxy : public CEntityMaterialProxy
{
public:
	CBaseInvisMaterialProxy();

	virtual bool Init( IMaterial *pMaterial, KeyValues* pKeyValues ) OVERRIDE;	
	virtual void Release() OVERRIDE;
	virtual IMaterial* GetMaterial() OVERRIDE;
protected:
	virtual void OnBindNotEntity( void *pRenderable ) OVERRIDE;
	IMaterialVar *m_pPercentInvisible;
};

#endif // TF_PROXY_ENTITY_H