This commit is contained in:
nephacks
2025-06-04 03:22:50 +02:00
parent f234f23848
commit f12416cffd
14243 changed files with 6446499 additions and 26 deletions

View File

@@ -0,0 +1,23 @@
//========= Copyright <20> Valve Corporation, All rights reserved. ============//
//
// Purpose: Provide interface to custom materials for entities that use them
//
//=============================================================================//
#pragma once
#include "refcount.h"
class IMaterial;
class ICompositeTexture;
class ICustomMaterial : public CRefCounted<>
{
public:
virtual IMaterial *GetMaterial() = 0;
virtual void AddTexture( ICompositeTexture *pTexture ) = 0;
virtual ICompositeTexture *GetTexture( int nIndex ) = 0;
virtual bool IsValid() const = 0;
virtual bool CheckRegenerate( int nSize ) = 0;
virtual const char* GetBaseMaterialName( void ) = 0;
};