Team Fortress 2 Source Code as on 22/4/2020
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

  1. //========= Copyright 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. #include "datamodel/dmelement.h"
  12. //-----------------------------------------------------------------------------
  13. // Forward declarations
  14. //-----------------------------------------------------------------------------
  15. class IMaterial;
  16. //-----------------------------------------------------------------------------
  17. // A class representing a material
  18. //-----------------------------------------------------------------------------
  19. class CDmeMaterial : public CDmElement
  20. {
  21. DEFINE_ELEMENT( CDmeMaterial, CDmElement );
  22. public:
  23. IMaterial *GetCachedMTL();
  24. void SetMaterial( const char *pMaterialName );
  25. const char *GetMaterialName() const;
  26. virtual void Resolve();
  27. private:
  28. IMaterial *m_pMTL;
  29. CDmaString m_mtlName;
  30. };
  31. #endif // DMEMATERIAL_H