source-engine/public/movieobjects/dmematerial.h
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

42 lines
1.0 KiB
C++

//========= 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