Counter Strike : Global Offensive Source Code
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.

45 lines
1.1 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // A class representing a material
  4. //
  5. //=============================================================================
  6. #ifndef DMEMATERIAL_H
  7. #define DMEMATERIAL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // Valve includes
  12. #include "datamodel/dmelement.h"
  13. #include "materialsystem/materialsystemutil.h"
  14. //-----------------------------------------------------------------------------
  15. // Forward declarations
  16. //-----------------------------------------------------------------------------
  17. class IMaterial;
  18. //-----------------------------------------------------------------------------
  19. // A class representing a material
  20. //-----------------------------------------------------------------------------
  21. class CDmeMaterial : public CDmElement
  22. {
  23. DEFINE_ELEMENT( CDmeMaterial, CDmElement );
  24. public:
  25. IMaterial *GetCachedMTL();
  26. void SetMaterial( const char *pMaterialName );
  27. const char *GetMaterialName() const;
  28. virtual void Resolve();
  29. private:
  30. CMaterialReference m_mtlRef;
  31. CDmaString m_mtlName;
  32. };
  33. #endif // DMEMATERIAL_H