torque Torque Game Engine Documentation
TGE Version 1.5.2

TSShapeInstance::ObjectInstance Struct Reference

#include <tsShapeInstance.h>

Inheritance diagram for TSShapeInstance::ObjectInstance:

Inheritance graph
[legend]

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

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

Data Fields

S32 nodeIndex

Static Public Attributes

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


Member Function Documentation

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

Gets the transform of this object.

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

Render! This draws the base-textured object.

Reimplemented in TSShapeInstance::MeshObjectInstance, and TSShapeInstance::DecalObjectInstance.

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

Renders the environment map.

Reimplemented in TSShapeInstance::MeshObjectInstance.

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

Renders the detail map.

Reimplemented in TSShapeInstance::MeshObjectInstance.

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

Renders the fog texture.

Reimplemented in TSShapeInstance::MeshObjectInstance.

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

Renders the lightmap.

Reimplemented in TSShapeInstance::MeshObjectInstance.

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

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

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

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

Ray cast for collision detection.

Reimplemented in TSShapeInstance::MeshObjectInstance, and TSShapeInstance::DecalObjectInstance.


Field 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




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