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.

39 lines
939 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Dme version of a joint of a skeletal model (gets compiled into a MDL)
  4. //
  5. //===========================================================================//
  6. #ifndef DMEJOINT_H
  7. #define DMEJOINT_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "movieobjects/dmedag.h"
  12. #include "materialsystem/MaterialSystemUtil.h"
  13. class CDmeDrawSettings;
  14. //-----------------------------------------------------------------------------
  15. // A class representing a skeletal model
  16. //-----------------------------------------------------------------------------
  17. class CDmeJoint : public CDmeDag
  18. {
  19. DEFINE_ELEMENT( CDmeJoint, CDmeDag );
  20. public:
  21. virtual void Draw( CDmeDrawSettings *pDrawSettings = NULL );
  22. static void DrawJointHierarchy( bool bDrawJoints );
  23. private:
  24. void DrawJoints();
  25. CMaterialReference m_JointMaterial;
  26. static bool s_bDrawJoints;
  27. };
  28. #endif // DMEJOINT_H