summaryrefslogtreecommitdiff
path: root/public/mdlobjects/dmelodlist.h
blob: b5f20d8728c889b0c94ee68af7a13605468bf846 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//========= Copyright 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;

				 
//-----------------------------------------------------------------------------
// 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;

};


#endif // DMELODLIST_H