Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

45 lines
1.1 KiB

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