Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <Opcode.h>
Public Member Functions | |
BaseModel () | |
virtual | ~BaseModel () |
virtual bool | Build (const OPCODECREATE &create)=0 |
virtual udword | GetUsedBytes () const =0 |
virtual bool | Refit () |
inline_ const AABBTree * | GetSourceTree () const |
inline_ const AABBOptimizedTree * | GetTree () const |
inline_ AABBOptimizedTree * | GetTree () |
inline_ udword | GetNbNodes () const |
inline_ BOOL | HasLeafNodes () const |
inline_ BOOL | IsQuantized () const |
inline_ BOOL | HasSingleNode () const |
inline_ udword | GetModelCode () const |
inline_ const MeshInterface * | GetMeshInterface () const |
inline_ void | SetMeshInterface (const MeshInterface *imesh) |
Protected Member Functions | |
void | ReleaseBase () |
bool | CreateTree (bool no_leaf, bool quantized) |
Protected Attributes | |
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... | |
BaseModel::BaseModel | ( | ) |
Constructor.
Definition at line 59 of file OPC_BaseModel.cpp.
|
virtual |
|
pure virtual |
Builds a collision model.
create | [in] model creation structure |
Creates an optimized tree according to user-settings, and setups mModelCode.
no_leaf | [in] true for "no leaf" tree |
quantized | [in] true for quantized tree |
Definition at line 92 of file OPC_BaseModel.cpp.
|
inline |
Gets the mesh interface.
Definition at line 156 of file Opcode.h.
Referenced by csOPCODECollider::getNumVertex(), and Opcode::Picking().
|
inline |
Gets the tree.
Definition at line 99 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
|
inline |
|
pure virtual |
Gets the number of bytes used by the tree.
Checks whether the tree has leaf nodes or not.
Definition at line 124 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
Checks whether the model has a single node or not. This special case must be handled separately.
Definition at line 140 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
Checks whether the tree is quantized or not.
Definition at line 132 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
|
virtual |
Refits the collision model. This can be used to handle dynamic meshes. Usage is:
Definition at line 127 of file OPC_BaseModel.cpp.
|
protected |
Releases everything.
Definition at line 78 of file OPC_BaseModel.cpp.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |