summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_proxyentity.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/client/tf/tf_proxyentity.h')
-rw-r--r--game/client/tf/tf_proxyentity.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/game/client/tf/tf_proxyentity.h b/game/client/tf/tf_proxyentity.h
new file mode 100644
index 0000000..efa986c
--- /dev/null
+++ b/game/client/tf/tf_proxyentity.h
@@ -0,0 +1,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