#include <Opcode.h>
Public Member Functions | |
inline_ const udword * | GetIndices () const |
inline_ const LeafTriangles * | GetLeafTriangles () const |
HybridModel () | |
override (BaseModel) bool Build(const OPCODECREATE &create) | |
override (BaseModel) udword GetUsedBytes() const | |
override (BaseModel) bool Refit() | |
virtual | ~HybridModel () |
Private Member Functions | |
void | Release () |
Private Attributes | |
udword * | mIndices |
Array of primitive indices. | |
udword | mNbLeaves |
Number of leaf nodes in the model. | |
udword | mNbPrimitives |
Number of primitives in the model. | |
LeafTriangles * | mTriangles |
Array of mNbLeaves leaf descriptors. |
Constructor.
Definition at line 94 of file OPC_HybridModel.cpp.
HybridModel::~HybridModel | ( | ) | [virtual] |
Destructor.
Definition at line 107 of file OPC_HybridModel.cpp.
inline_ const udword* Opcode::HybridModel::GetIndices | ( | ) | const [inline] |
inline_ const LeafTriangles* Opcode::HybridModel::GetLeafTriangles | ( | ) | const [inline] |
Opcode::HybridModel::override | ( | BaseModel | ) | const |
Builds a collision model.
create | [in] model creation structure |
Opcode::HybridModel::override | ( | BaseModel | ) | const |
Gets the number of bytes used by the tree.
Refits the collision model. This can be used to handle dynamic meshes. Usage is: 1. modify your mesh vertices (keep the topology constant!) 2. refit the tree (call this method)
void HybridModel::Release | ( | ) | [private] |
Releases everything.
Definition at line 117 of file OPC_HybridModel.cpp.
udword* Opcode::HybridModel::mIndices [private] |
udword Opcode::HybridModel::mNbLeaves [private] |
udword Opcode::HybridModel::mNbPrimitives [private] |
LeafTriangles* Opcode::HybridModel::mTriangles [private] |