Counter Strike : Global Offensive Source Code
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.

22 lines
677 B

  1. //========= Copyright � Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Provide interface to custom materials for entities that use them
  4. //
  5. //=============================================================================//
  6. #pragma once
  7. #include "refcount.h"
  8. class IMaterial;
  9. class ICompositeTexture;
  10. class ICustomMaterial : public CRefCounted<>
  11. {
  12. public:
  13. virtual IMaterial *GetMaterial() = 0;
  14. virtual void AddTexture( ICompositeTexture *pTexture ) = 0;
  15. virtual ICompositeTexture *GetTexture( int nIndex ) = 0;
  16. virtual bool IsValid() const = 0;
  17. virtual bool CheckRegenerate( int nSize ) = 0;
  18. virtual const char* GetBaseMaterialName( void ) = 0;
  19. };