Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
963 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: A base class for all material proxies in the tf client dll
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TF_PROXY_ENTITY_H
  8. #define TF_PROXY_ENTITY_H
  9. #include "proxyentity.h"
  10. //-----------------------------------------------------------------------------
  11. // Base class all translucent material proxies should inherit from
  12. //-----------------------------------------------------------------------------
  13. abstract_class CBaseInvisMaterialProxy : public CEntityMaterialProxy
  14. {
  15. public:
  16. CBaseInvisMaterialProxy();
  17. virtual bool Init( IMaterial *pMaterial, KeyValues* pKeyValues ) OVERRIDE;
  18. virtual void Release() OVERRIDE;
  19. virtual IMaterial* GetMaterial() OVERRIDE;
  20. protected:
  21. virtual void OnBindNotEntity( void *pRenderable ) OVERRIDE;
  22. IMaterialVar *m_pPercentInvisible;
  23. };
  24. #endif // TF_PROXY_ENTITY_H