Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Opcode::BVTCache Struct Reference

#include <Opcode.h>

Inheritance diagram for Opcode::BVTCache:
Pair

Public Member Functions

 BVTCache ()
 Constructor. More...
 
void ResetCache ()
 
void ResetCountDown ()
 
- Public Member Functions inherited from Pair
inline_ Pair ()
 
inline_ Pair (udword i0, udword i1)
 

Public Attributes

const ModelModel0
 Model for first object. More...
 
const ModelModel1
 Model for second object. More...
 
- Public Attributes inherited from Pair
udword id0
 First index of the pair. More...
 
udword id1
 Second index of the pair. More...
 

Detailed Description

This structure holds cached information used by the algorithm. Two model pointers and two colliding primitives are cached. Model pointers are assigned to their respective meshes, and the pair of colliding primitives is used for temporal coherence. That is, in case temporal coherence is enabled, those two primitives are tested for overlap before everything else. If they still collide, we're done before even entering the recursive collision code.

Definition at line 30 of file Opcode.h.

Constructor & Destructor Documentation

Opcode::BVTCache::BVTCache ( )
inline

Constructor.

Definition at line 33 of file Opcode.h.

39  {

Member Function Documentation

void Opcode::BVTCache::ResetCache ( )
inline

Definition at line 39 of file Opcode.h.

39  {
40 
41 
42 
43 
44  #include "Ice/IceAxes.h"
45  #include "Ice/IcePoint.h"
46  #include "Ice/IceHPoint.h"
47  #include "Ice/IceMatrix3x3.h"
48  #include "Ice/IceMatrix4x4.h"
49  #include "Ice/IcePlane.h"
50  #include "Ice/IceRay.h"
51  #include "Ice/IceIndexedTriangle.h"
void Opcode::BVTCache::ResetCountDown ( )
inline

Definition at line 53 of file Opcode.h.

Member Data Documentation

const Model* Opcode::BVTCache::Model0

Model for first object.

Definition at line 60 of file Opcode.h.

const Model* Opcode::BVTCache::Model1

Model for second object.

Definition at line 61 of file Opcode.h.


The documentation for this struct was generated from the following file: