#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 () |
Public Member Functions inherited from Opcode::BaseModel | |
BaseModel () | |
virtual bool | Build (const OPCODECREATE &create)=0 |
inline_ const MeshInterface * | GetMeshInterface () const |
inline_ udword | GetModelCode () const |
inline_ udword | GetNbNodes () const |
inline_ const AABBTree * | GetSourceTree () const |
inline_ const AABBOptimizedTree * | GetTree () const |
inline_ AABBOptimizedTree * | GetTree () |
virtual udword | GetUsedBytes () const =0 |
inline_ BOOL | HasLeafNodes () const |
inline_ BOOL | HasSingleNode () const |
inline_ BOOL | IsQuantized () const |
virtual bool | Refit () |
inline_ void | SetMeshInterface (const MeshInterface *imesh) |
virtual | ~BaseModel () |
Private Member Functions | |
void | Release () |
Private Attributes | |
udword * | mIndices |
Array of primitive indices. More... | |
udword | mNbLeaves |
Number of leaf nodes in the model. More... | |
udword | mNbPrimitives |
Number of primitives in the model. More... | |
LeafTriangles * | mTriangles |
Array of mNbLeaves leaf descriptors. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Opcode::BaseModel | |
bool | CreateTree (bool no_leaf, bool quantized) |
void | ReleaseBase () |
Protected Attributes inherited from Opcode::BaseModel | |
const MeshInterface * | mIMesh |
User-defined mesh interface. More... | |
udword | mModelCode |
Model code = combination of ModelFlag(s) More... | |
AABBTree * | mSource |
Original source tree. More... | |
AABBOptimizedTree * | mTree |
Optimized tree owned by the model. More... | |
HybridModel::HybridModel | ( | ) |
Constructor.
Definition at line 94 of file OPC_HybridModel.cpp.
|
virtual |
Destructor.
Definition at line 107 of file OPC_HybridModel.cpp.
|
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.
Opcode::HybridModel::override | ( | BaseModel | ) |
Refits the collision model. This can be used to handle dynamic meshes. Usage is:
|
private |
Releases everything.
Definition at line 117 of file OPC_HybridModel.cpp.
|
private |
|
private |
|
private |
|
private |