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.2 KiB

  1. //========= Copyright 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. #include "movieobjects/dmeshape.h"
  12. #include "materialsystem/MaterialSystemUtil.h"
  13. //-----------------------------------------------------------------------------
  14. // Forward Declarations
  15. //-----------------------------------------------------------------------------
  16. class CDmeDrawSettings;
  17. //-----------------------------------------------------------------------------
  18. // A class representing an attachment point
  19. //-----------------------------------------------------------------------------
  20. class CDmeAttachment : public CDmeShape
  21. {
  22. DEFINE_ELEMENT( CDmeAttachment, CDmeShape );
  23. public:
  24. virtual void Draw( const matrix3x4_t &shapeToWorld, CDmeDrawSettings *pDrawSettings = NULL );
  25. CDmaVar< bool > m_bIsRigid; // Does the attachment animate?
  26. CDmaVar< bool > m_bIsWorldAligned; // Is the attachment world-aligned?
  27. private:
  28. CMaterialReference m_AttachmentMaterial;
  29. };
  30. #endif // DMEATTACHMENT_H