TSShapeInstance::MeshObjectInstance Struct Reference

#include <tsShapeInstance.h>

Inheritance diagram for TSShapeInstance::MeshObjectInstance:

Inheritance graph
[legend]
List of all members.

Detailed Description

These are set up by default based on shape data.


Public Member Functions

virtual ~MeshObjectInstance ()
TSMeshgetMesh (S32 num) const
 Gets the mesh with specified detail level.
Render Method
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.
Collision Routines
bool buildPolyList (S32 objectDetail, AbstractPolyList *, U32 &surfaceKey, TSMaterialList *materials)
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 *, TSMaterialList *materials)
 Ray cast for collision detection.

Public Attributes

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


Constructor & Destructor Documentation

virtual TSShapeInstance::MeshObjectInstance::~MeshObjectInstance (  )  [inline, virtual]


Member Function Documentation

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

Render! This draws the base-textured object.

Implements 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,
TSMaterialList materials 
) [virtual]

bool TSShapeInstance::MeshObjectInstance::getFeatures ( S32  objectDetail,
const MatrixF mat,
const Point3F n,
ConvexFeature ,
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 ,
TSMaterialList materials 
) [virtual]

Ray cast for collision detection.

Implements TSShapeInstance::ObjectInstance.


Member Data Documentation

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