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.

32 lines
710 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IMATERIALPROXY_H
  8. #define IMATERIALPROXY_H
  9. #pragma once
  10. #include "interface.h"
  11. #define IMATERIAL_PROXY_INTERFACE_VERSION "_IMaterialProxy003"
  12. class IMaterial;
  13. class KeyValues;
  14. abstract_class IMaterialProxy
  15. {
  16. public:
  17. virtual bool Init( IMaterial* pMaterial, KeyValues *pKeyValues ) = 0;
  18. virtual void OnBind( void * ) = 0;
  19. virtual void Release() = 0;
  20. virtual IMaterial * GetMaterial() = 0;
  21. protected:
  22. // no one should call this directly
  23. virtual ~IMaterialProxy() {}
  24. };
  25. #endif // IMATERIALPROXY_H