summaryrefslogtreecommitdiff
path: root/public/mdlobjects/dmebodypart.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/mdlobjects/dmebodypart.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/mdlobjects/dmebodypart.h')
-rw-r--r--public/mdlobjects/dmebodypart.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/public/mdlobjects/dmebodypart.h b/public/mdlobjects/dmebodypart.h
new file mode 100644
index 0000000..453bb46
--- /dev/null
+++ b/public/mdlobjects/dmebodypart.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Body part base class
+//
+// Body parts can be either:
+//
+// * A list of LODs (DmeLODList)
+// * empty (DmeBlankBodyPart)
+//
+//===========================================================================//
+
+#ifndef DMEBODYPART_H
+#define DMEBODYPART_H
+
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "datamodel/dmelement.h"
+#include "datamodel/dmattributevar.h"
+#include "mdlobjects/dmelod.h"
+
+
+//-----------------------------------------------------------------------------
+// A generic body part
+//-----------------------------------------------------------------------------
+class CDmeBodyPart : public CDmElement
+{
+ DEFINE_ELEMENT( CDmeBodyPart, CDmElement );
+
+public:
+ // Returns the number of LODs in this body part, can be 0
+ virtual int LODCount() const { return 0; }
+
+ // Returns the root LOD. This is the one with the switch metric 0
+ virtual CDmeLOD *GetRootLOD() { return NULL; }
+
+ // Returns the shadow LOD
+ virtual CDmeLOD *GetShadowLOD() { return NULL; }
+};
+
+
+#endif // DMEBODYPART_H