summaryrefslogtreecommitdiff
path: root/public/mdlobjects/dmelodlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'public/mdlobjects/dmelodlist.h')
-rw-r--r--public/mdlobjects/dmelodlist.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/public/mdlobjects/dmelodlist.h b/public/mdlobjects/dmelodlist.h
new file mode 100644
index 0000000..b5f20d8
--- /dev/null
+++ b/public/mdlobjects/dmelodlist.h
@@ -0,0 +1,47 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Dme version of a list of lods
+//
+//===========================================================================//
+
+#ifndef DMELODLIST_H
+#define DMELODLIST_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "mdlobjects/dmebodypart.h"
+
+
+//-----------------------------------------------------------------------------
+// Forward Declarations
+//-----------------------------------------------------------------------------
+class CDmeLOD;
+
+
+//-----------------------------------------------------------------------------
+// A class representing a list of LODs
+//-----------------------------------------------------------------------------
+class CDmeLODList : public CDmeBodyPart
+{
+ DEFINE_ELEMENT( CDmeLODList, CDmeBodyPart );
+
+public:
+ // Returns the number of LODs in this body part, can be 0
+ virtual int LODCount() const;
+
+ // Returns the root LOD. This is the one with the switch metric 0
+ virtual CDmeLOD *GetRootLOD();
+
+ // Returns the shadow LOD
+ virtual CDmeLOD *GetShadowLOD();
+
+ // NOTE: It may be possible to eliminate the skeleton here
+ // and assume the LOD always uses the root skeleton.
+ CDmaElementArray< CDmeLOD > m_LODs;
+
+};
+
+
+#endif // DMELODLIST_H