TSShapeInstance::MeshObjectInstance Struct Reference#include <tsShapeInstance.h>
Inheritance diagram for TSShapeInstance::MeshObjectInstance:
[legend]
Detailed Description
These are set up by default based on shape data.
|
Public Member Functions |
| S32 | getSizeVB (S32 size) |
| bool | hasMergeIndices () |
| TSMesh * | getMesh (S32 num) const |
| | Gets the mesh with specified detail level.
|
|
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) |
|
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.
|
|
| 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::renderEnvironmentMap |
( |
S32 |
objectDetail, |
|
|
TSMaterialList * |
| |
|
) |
| | [virtual] |
| void TSShapeInstance::MeshObjectInstance::renderDetailMap |
( |
S32 |
objectDetail, |
|
|
TSMaterialList * |
| |
|
) |
| | [virtual] |
| void TSShapeInstance::MeshObjectInstance::renderLightMap |
( |
S32 |
objectDetail, |
|
|
TSMaterialList * |
| |
|
) |
| | [virtual] |
| 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] |
| void TSShapeInstance::MeshObjectInstance::support |
( |
S32 |
od, |
|
|
const Point3F & |
v, |
|
|
F32 * |
currMaxDP, |
|
|
Point3F * |
currSupport | |
|
) |
| | [virtual] |
| bool TSShapeInstance::MeshObjectInstance::castRay |
( |
S32 |
objectDetail, |
|
|
const Point3F & |
start, |
|
|
const Point3F & |
end, |
|
|
RayInfo * |
| |
|
) |
| | [virtual] |
Field Documentation
one mesh per detail level... Null entries allowed.
|