Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.3 KiB

//====== Copyright © 1996-2004, Valve Corporation, All rights reserved. =====//
//
// Dme version of a model attachment point
//
//===========================================================================//
#ifndef DMEATTACHMENT_H
#define DMEATTACHMENT_H
#ifdef _WIN32
#pragma once
#endif
// Valve includes
#include "movieobjects/dmeshape.h"
#include "materialsystem/imaterialsystem.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:
static IMaterial *sm_pMatAttachment;
CMaterialReference m_MatRefAttachment;
};
#endif // DMEATTACHMENT_H