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

  1. //====== Copyright � 1996-2004, 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. // Valve includes
  12. #include "movieobjects/dmedag.h"
  13. #include "materialsystem/imaterial.h"
  14. #include "materialsystem/materialsystemutil.h"
  15. // Forward declarations
  16. class CDmeDrawSettings;
  17. //-----------------------------------------------------------------------------
  18. // A class representing a skeletal model
  19. //-----------------------------------------------------------------------------
  20. class CDmeJoint : public CDmeDag
  21. {
  22. DEFINE_ELEMENT( CDmeJoint, CDmeDag );
  23. public:
  24. virtual void Draw( CDmeDrawSettings *pDrawSettings = NULL );
  25. static void DrawJointHierarchy( bool bDrawJoints );
  26. private:
  27. void DrawJoints();
  28. static bool sm_bDrawJoints;
  29. static IMaterial *sm_pMatJoint;
  30. CMaterialReference m_MatRefJoint;
  31. };
  32. #endif // DMEJOINT_H