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.

47 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Snapshot of
  4. //
  5. //===========================================================================//
  6. #ifndef DMETRANSFORMLIST_H
  7. #define DMETRANSFORMLIST_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "movieobjects/dmedag.h"
  12. //-----------------------------------------------------------------------------
  13. // A class representing a skeletal model
  14. //-----------------------------------------------------------------------------
  15. class CDmeTransformList : public CDmElement
  16. {
  17. DEFINE_ELEMENT( CDmeTransformList, CDmElement );
  18. public:
  19. int GetTransformCount() const;
  20. CDmeTransform *GetTransform( int nIndex );
  21. void SetTransform( int nIndex, const matrix3x4_t& mat );
  22. CDmaElementArray<CDmeTransform> m_Transforms;
  23. };
  24. //-----------------------------------------------------------------------------
  25. // Inline methods
  26. //-----------------------------------------------------------------------------
  27. inline int CDmeTransformList::GetTransformCount() const
  28. {
  29. return m_Transforms.Count();
  30. }
  31. inline CDmeTransform *CDmeTransformList::GetTransform( int nIndex )
  32. {
  33. return m_Transforms[nIndex];
  34. }
  35. #endif // DMETRANSFORMLIST_H