2025-06-04 03:22:50 +02:00

46 lines
1.1 KiB
C++

//====== Copyright © 1996-2004, Valve Corporation, All rights reserved. =======
//
// A class representing a material
//
//=============================================================================
#ifndef DMEMATERIAL_H
#define DMEMATERIAL_H
#ifdef _WIN32
#pragma once
#endif
// Valve includes
#include "datamodel/dmelement.h"
#include "materialsystem/materialsystemutil.h"
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class IMaterial;
//-----------------------------------------------------------------------------
// A class representing a material
//-----------------------------------------------------------------------------
class CDmeMaterial : public CDmElement
{
DEFINE_ELEMENT( CDmeMaterial, CDmElement );
public:
IMaterial *GetCachedMTL();
void SetMaterial( const char *pMaterialName );
const char *GetMaterialName() const;
virtual void Resolve();
private:
CMaterialReference m_mtlRef;
CDmaString m_mtlName;
};
#endif // DMEMATERIAL_H