torque Torque Game Engine Documentation
TGE Version 1.5.2

TSShapeInstance::MeshObjectInstance Struct Reference

#include <tsShapeInstance.h>

Inheritance diagram for TSShapeInstance::MeshObjectInstance:

Inheritance graph
[legend]

Detailed Description

These are set up by default based on shape data.


Public Member Functions

S32 getSizeVB (S32 size)
bool hasMergeIndices ()
TSMeshgetMesh (S32 num) const
 Gets the mesh with specified detail level.
Vertex Buffer functions
Fills in the mesh's vertex buffer

void fillVB (S32 vb, TSMaterialList *materials)
void morphVB (S32 vb, S32 &previousMerge, S32 objectDetail, TSMaterialList *materials)
void renderVB (S32 vb, S32 objectDetail, TSMaterialList *materials)
Render Methods
This just selects the right detail level (mesh) and calls mesh's render

void render (S32 objectDetail, TSMaterialList *)
 Render! This draws the base-textured object.
void renderEnvironmentMap (S32 objectDetail, TSMaterialList *)
 Renders the environment map.
void renderDetailMap (S32 objectDetail, TSMaterialList *)
 Renders the detail map.
void renderShadow (S32 objectDetail, const MatrixF &mat, S32 dim, U32 *bits, TSMaterialList *)
void renderFog (S32 objectDetail, TSMaterialList *)
 Renders the fog texture.
void renderLightMap (S32 objectDetail, TSMaterialList *)
 Renders the lightmap.
Collision Routines
bool buildPolyList (S32 objectDetail, AbstractPolyList *, U32 &surfaceKey)
bool getFeatures (S32 objectDetail, const MatrixF &mat, const Point3F &n, ConvexFeature *, U32 &surfaceKey)
void support (S32 od, const Point3F &v, F32 *currMaxDP, Point3F *currSupport)
bool castRay (S32 objectDetail, const Point3F &start, const Point3F &end, RayInfo *)
 Ray cast for collision detection.

Data Fields

TSMesh *const * meshList
 one mesh per detail level... Null entries allowed.
const TSObject * object
S32 frame
S32 matFrame
F32 visible


Member Function Documentation

S32 TSShapeInstance::MeshObjectInstance::getSizeVB ( S32  size  ) 

bool TSShapeInstance::MeshObjectInstance::hasMergeIndices (  ) 

void TSShapeInstance::MeshObjectInstance::fillVB ( S32  vb,
TSMaterialList materials 
)

void TSShapeInstance::MeshObjectInstance::morphVB ( S32  vb,
S32 previousMerge,
S32  objectDetail,
TSMaterialList materials 
)

void TSShapeInstance::MeshObjectInstance::renderVB ( S32  vb,
S32  objectDetail,
TSMaterialList materials 
)

void TSShapeInstance::MeshObjectInstance::render ( S32  objectDetail,
TSMaterialList  
) [virtual]

Render! This draws the base-textured object.

Reimplemented from TSShapeInstance::ObjectInstance.

void TSShapeInstance::MeshObjectInstance::renderEnvironmentMap ( S32  objectDetail,
TSMaterialList  
) [virtual]

Renders the environment map.

Reimplemented from TSShapeInstance::ObjectInstance.

void TSShapeInstance::MeshObjectInstance::renderDetailMap ( S32  objectDetail,
TSMaterialList  
) [virtual]

Renders the detail map.

Reimplemented from TSShapeInstance::ObjectInstance.

void TSShapeInstance::MeshObjectInstance::renderShadow ( S32  objectDetail,
const MatrixF mat,
S32  dim,
U32 bits,
TSMaterialList  
)

void TSShapeInstance::MeshObjectInstance::renderFog ( S32  objectDetail,
TSMaterialList  
) [virtual]

Renders the fog texture.

Reimplemented from TSShapeInstance::ObjectInstance.

void TSShapeInstance::MeshObjectInstance::renderLightMap ( S32  objectDetail,
TSMaterialList  
) [virtual]

Renders the lightmap.

Reimplemented from TSShapeInstance::ObjectInstance.

TSMesh* TSShapeInstance::MeshObjectInstance::getMesh ( S32  num  )  const [inline]

Gets the mesh with specified detail level.

bool TSShapeInstance::MeshObjectInstance::buildPolyList ( S32  objectDetail,
AbstractPolyList ,
U32 surfaceKey 
) [virtual]

Reimplemented from TSShapeInstance::ObjectInstance.

bool TSShapeInstance::MeshObjectInstance::getFeatures ( S32  objectDetail,
const MatrixF mat,
const Point3F n,
ConvexFeature ,
U32 surfaceKey 
) [virtual]

Reimplemented from TSShapeInstance::ObjectInstance.

void TSShapeInstance::MeshObjectInstance::support ( S32  od,
const Point3F v,
F32 currMaxDP,
Point3F currSupport 
) [virtual]

Reimplemented from TSShapeInstance::ObjectInstance.

bool TSShapeInstance::MeshObjectInstance::castRay ( S32  objectDetail,
const Point3F start,
const Point3F end,
RayInfo  
) [virtual]

Ray cast for collision detection.

Reimplemented from TSShapeInstance::ObjectInstance.


Field Documentation

one mesh per detail level... Null entries allowed.




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen