diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/proxyentity.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/proxyentity.h')
| -rw-r--r-- | game/client/proxyentity.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/game/client/proxyentity.h b/game/client/proxyentity.h new file mode 100644 index 0000000..08fe427 --- /dev/null +++ b/game/client/proxyentity.h @@ -0,0 +1,32 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: A base class for all material proxies in the client dll +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef PROXY_ENTITY_H +#define PROXY_ENTITY_H + +#include "materialsystem/imaterialproxy.h" + + +class IMaterialVar; + +//----------------------------------------------------------------------------- +// Base class all material proxies should inherit from +//----------------------------------------------------------------------------- +abstract_class CEntityMaterialProxy : public IMaterialProxy +{ +public: + virtual void Release( void ); + virtual void OnBind( void *pC_BaseEntity ); + +protected: + // base classes should implement these + virtual void OnBind( C_BaseEntity *pBaseEntity ) = 0; + virtual void OnBindNotEntity( void *pRenderable ) {} +}; + +#endif // PROXY_ENTITY_H + |