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.
41 lines
1.0 KiB
41 lines
1.0 KiB
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// A class representing a material
|
|
//
|
|
//=============================================================================
|
|
|
|
#ifndef DMEMATERIAL_H
|
|
#define DMEMATERIAL_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "datamodel/dmelement.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:
|
|
IMaterial *m_pMTL;
|
|
CDmaString m_mtlName;
|
|
};
|
|
|
|
#endif // DMEMATERIAL_H
|