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.

38 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // An element that contains a transformlist
  4. //
  5. //=============================================================================
  6. #include "movieobjects/dmetransformlist.h"
  7. #include "datamodel/dmelementfactoryhelper.h"
  8. // memdbgon must be the last include file in a .cpp file!!!
  9. #include "tier0/memdbgon.h"
  10. //-----------------------------------------------------------------------------
  11. // Expose this class to the scene database
  12. //-----------------------------------------------------------------------------
  13. IMPLEMENT_ELEMENT_FACTORY( DmeTransformList, CDmeTransformList );
  14. //-----------------------------------------------------------------------------
  15. // Purpose:
  16. //-----------------------------------------------------------------------------
  17. void CDmeTransformList::OnConstruction()
  18. {
  19. m_Transforms.Init( this, "transforms" );
  20. }
  21. void CDmeTransformList::OnDestruction()
  22. {
  23. }
  24. //-----------------------------------------------------------------------------
  25. // Sets the transform
  26. //-----------------------------------------------------------------------------
  27. void CDmeTransformList::SetTransform( int nIndex, const matrix3x4_t& mat )
  28. {
  29. m_Transforms[nIndex]->SetTransform( mat );
  30. }