blob: 453bb46111ef29f373312e59493bf512859581ef (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Body part base class
//
// Body parts can be either:
//
// * A list of LODs (DmeLODList)
// * empty (DmeBlankBodyPart)
//
//===========================================================================//
#ifndef DMEBODYPART_H
#define DMEBODYPART_H
#ifdef _WIN32
#pragma once
#endif
#include "datamodel/dmelement.h"
#include "datamodel/dmattributevar.h"
#include "mdlobjects/dmelod.h"
//-----------------------------------------------------------------------------
// A generic body part
//-----------------------------------------------------------------------------
class CDmeBodyPart : public CDmElement
{
DEFINE_ELEMENT( CDmeBodyPart, CDmElement );
public:
// Returns the number of LODs in this body part, can be 0
virtual int LODCount() const { return 0; }
// Returns the root LOD. This is the one with the switch metric 0
virtual CDmeLOD *GetRootLOD() { return NULL; }
// Returns the shadow LOD
virtual CDmeLOD *GetShadowLOD() { return NULL; }
};
#endif // DMEBODYPART_H
|