csgo-2018-source/public/mdlobjects/dmelodlist.h
2021-07-24 21:11:47 -07:00

51 lines
1.3 KiB
C++

//====== Copyright © 1996-2004, Valve Corporation, All rights reserved. =====//
//
// Dme version of a list of lods
//
//===========================================================================//
#ifndef DMELODLIST_H
#define DMELODLIST_H
#ifdef _WIN32
#pragma once
#endif
#include "mdlobjects/dmebodypart.h"
//-----------------------------------------------------------------------------
// Forward Declarations
//-----------------------------------------------------------------------------
class CDmeLOD;
class CDmeEyeball;
//-----------------------------------------------------------------------------
// A class representing a list of LODs
//-----------------------------------------------------------------------------
class CDmeLODList : public CDmeBodyPart
{
DEFINE_ELEMENT( CDmeLODList, CDmeBodyPart );
public:
// Returns the number of LODs in this body part, can be 0
virtual int LODCount() const;
// Returns the root LOD. This is the one with the switch metric 0
virtual CDmeLOD *GetRootLOD();
// Returns the shadow LOD
virtual CDmeLOD *GetShadowLOD();
// NOTE: It may be possible to eliminate the skeleton here
// and assume the LOD always uses the root skeleton.
CDmaElementArray< CDmeLOD > m_LODs;
// Eyeballs
CDmaElementArray< CDmeEyeball > m_EyeballList;
};
#endif // DMELODLIST_H