summaryrefslogtreecommitdiff
path: root/public/movieobjects/dmetransformlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'public/movieobjects/dmetransformlist.h')
-rw-r--r--public/movieobjects/dmetransformlist.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/public/movieobjects/dmetransformlist.h b/public/movieobjects/dmetransformlist.h
new file mode 100644
index 0000000..26a1517
--- /dev/null
+++ b/public/movieobjects/dmetransformlist.h
@@ -0,0 +1,47 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Snapshot of
+//
+//===========================================================================//
+
+#ifndef DMETRANSFORMLIST_H
+#define DMETRANSFORMLIST_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "movieobjects/dmedag.h"
+
+
+//-----------------------------------------------------------------------------
+// A class representing a skeletal model
+//-----------------------------------------------------------------------------
+class CDmeTransformList : public CDmElement
+{
+ DEFINE_ELEMENT( CDmeTransformList, CDmElement );
+
+public:
+ int GetTransformCount() const;
+ CDmeTransform *GetTransform( int nIndex );
+ void SetTransform( int nIndex, const matrix3x4_t& mat );
+
+ CDmaElementArray<CDmeTransform> m_Transforms;
+};
+
+
+//-----------------------------------------------------------------------------
+// Inline methods
+//-----------------------------------------------------------------------------
+inline int CDmeTransformList::GetTransformCount() const
+{
+ return m_Transforms.Count();
+}
+
+inline CDmeTransform *CDmeTransformList::GetTransform( int nIndex )
+{
+ return m_Transforms[nIndex];
+}
+
+
+#endif // DMETRANSFORMLIST_H