blob: 3bf9922ed152a14da049b8ee368c9c222366fce5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
//========= 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
|