mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-23 06:36:54 +00:00
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
|
//========= 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
|