TSShapeInstance::ObjectInstance Struct Reference

#include <tsShapeInstance.h>

Inheritance diagram for TSShapeInstance::ObjectInstance:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for all renderable objects, including mesh objects and decal objects.

An ObjectInstance points to the renderable items in the shape...


Public Member Functions

virtual ~ObjectInstance ()
MatrixFgetTransform ()
 Gets the transform of this object.
Render Functions
virtual void render (S32 objectDetail, TSMaterialList *)=0
 Render! This draws the base-textured object.
Collision Routines
virtual bool buildPolyList (S32 objectDetail, AbstractPolyList *, U32 &surfaceKey, TSMaterialList *materials)=0
virtual bool getFeatures (S32 objectDetail, const MatrixF &mat, const Point3F &n, ConvexFeature *, U32 &surfaceKey)=0
virtual void support (S32 od, const Point3F &v, F32 *currMaxDP, Point3F *currSupport)=0
virtual bool castRay (S32 objectDetail, const Point3F &start, const Point3F &end, RayInfo *, TSMaterialList *materials)=0
 Ray cast for collision detection.

Public Attributes

S32 nodeIndex

Static Public Attributes

static MatrixFsmTransforms
 this needs to be set before using an objectInstance.


Constructor & Destructor Documentation

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


Member Function Documentation

MatrixF * TSShapeInstance::ObjectInstance::getTransform (  )  [inline]

Gets the transform of this object.

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

Render! This draws the base-textured object.

Implemented in TSShapeInstance::MeshObjectInstance.

virtual bool TSShapeInstance::ObjectInstance::buildPolyList ( S32  objectDetail,
AbstractPolyList ,
U32 surfaceKey,
TSMaterialList materials 
) [pure virtual]

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

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

virtual bool TSShapeInstance::ObjectInstance::castRay ( S32  objectDetail,
const Point3F start,
const Point3F end,
RayInfo ,
TSMaterialList materials 
) [pure virtual]

Ray cast for collision detection.

Implemented in TSShapeInstance::MeshObjectInstance.


Member Data Documentation

this needs to be set before using an objectInstance.

..tells us where to look for the transforms...gets set be shape instance 'setStatics' method