diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/movieobjects/dmeattachment.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/movieobjects/dmeattachment.h')
| -rw-r--r-- | public/movieobjects/dmeattachment.h | 41 |
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 |