summaryrefslogtreecommitdiff
path: root/public/movieobjects/dmeattachment.h
diff options
context:
space:
mode:
Diffstat (limited to 'public/movieobjects/dmeattachment.h')
-rw-r--r--public/movieobjects/dmeattachment.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/public/movieobjects/dmeattachment.h b/public/movieobjects/dmeattachment.h
new file mode 100644
index 0000000..b781cf7
--- /dev/null
+++ b/public/movieobjects/dmeattachment.h
@@ -0,0 +1,41 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Dme version of a model attachment point
+//
+//===========================================================================//
+
+#ifndef DMEATTACHMENT_H
+#define DMEATTACHMENT_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "movieobjects/dmeshape.h"
+#include "materialsystem/MaterialSystemUtil.h"
+
+//-----------------------------------------------------------------------------
+// Forward Declarations
+//-----------------------------------------------------------------------------
+class CDmeDrawSettings;
+
+
+//-----------------------------------------------------------------------------
+// A class representing an attachment point
+//-----------------------------------------------------------------------------
+class CDmeAttachment : public CDmeShape
+{
+ DEFINE_ELEMENT( CDmeAttachment, CDmeShape );
+
+public:
+ virtual void Draw( const matrix3x4_t &shapeToWorld, CDmeDrawSettings *pDrawSettings = NULL );
+
+ CDmaVar< bool > m_bIsRigid; // Does the attachment animate?
+ CDmaVar< bool > m_bIsWorldAligned; // Is the attachment world-aligned?
+
+private:
+ CMaterialReference m_AttachmentMaterial;
+};
+
+
+#endif // DMEATTACHMENT_H