Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <Opcode.h>
Public Member Functions | |
MeshInterface () | |
~MeshInterface () | |
inline_ udword | GetNbTriangles () const |
inline_ udword | GetNbVertices () const |
inline_ void | SetNbTriangles (udword nb) |
inline_ void | SetNbVertices (udword nb) |
bool | SetCallback (RequestCallback callback, void *user_data) |
inline_ void * | GetUserData () const |
inline_ RequestCallback | GetCallback () const |
inline_ void | GetTriangle (VertexPointers &vp, udword index) const |
bool | RemapClient (udword nb_indices, const udword *permutation) const |
bool | IsValid () const |
udword | CheckTopology () const |
MeshInterface::MeshInterface | ( | ) |
Constructor.
Definition at line 129 of file OPC_MeshInterface.cpp.
MeshInterface::~MeshInterface | ( | ) |
udword MeshInterface::CheckTopology | ( | ) | const |
Checks the mesh itself is valid. Currently we only look for degenerate faces.
Definition at line 179 of file OPC_MeshInterface.cpp.
|
inline |
Definition at line 61 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
Definition at line 62 of file Opcode.h.
Referenced by csOPCODECollider::getNumVertex().
|
inline |
|
inline |
bool MeshInterface::IsValid | ( | ) | const |
Checks the mesh interface is valid, i.e. things have been setup correctly.
Definition at line 161 of file OPC_MeshInterface.cpp.
Remaps client's mesh according to a permutation.
nb_indices | [in] number of indices in the permutation (will be checked against number of triangles) |
permutation | [in] list of triangle indices |
Definition at line 267 of file OPC_MeshInterface.cpp.
bool MeshInterface::SetCallback | ( | RequestCallback | callback, |
void * | user_data | ||
) |
Callback control: setups object callback. Must provide triangle-vertices for a given triangle index.
callback | [in] user-defined callback |
user_data | [in] user-defined data |
Definition at line 212 of file OPC_MeshInterface.cpp.