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.

46 lines
1.3 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =====//
  2. //
  3. // Dme version of a model attachment point
  4. //
  5. //===========================================================================//
  6. #ifndef DMEATTACHMENT_H
  7. #define DMEATTACHMENT_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // Valve includes
  12. #include "movieobjects/dmeshape.h"
  13. #include "materialsystem/imaterialsystem.h"
  14. #include "materialsystem/materialsystemutil.h"
  15. //-----------------------------------------------------------------------------
  16. // Forward Declarations
  17. //-----------------------------------------------------------------------------
  18. class CDmeDrawSettings;
  19. //-----------------------------------------------------------------------------
  20. // A class representing an attachment point
  21. //-----------------------------------------------------------------------------
  22. class CDmeAttachment : public CDmeShape
  23. {
  24. DEFINE_ELEMENT( CDmeAttachment, CDmeShape );
  25. public:
  26. virtual void Draw( const matrix3x4_t &shapeToWorld, CDmeDrawSettings *pDrawSettings = NULL );
  27. CDmaVar< bool > m_bIsRigid; // Does the attachment animate?
  28. CDmaVar< bool > m_bIsWorldAligned; // Is the attachment world-aligned?
  29. private:
  30. static IMaterial *sm_pMatAttachment;
  31. CMaterialReference m_MatRefAttachment;
  32. };
  33. #endif // DMEATTACHMENT_H