summaryrefslogtreecommitdiff
path: root/game/client/proxyentity.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/client/proxyentity.h')
-rw-r--r--game/client/proxyentity.h32
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
+