torque Torque Game Engine Documentation
TGE Version 1.5.2

DecalManager Class Reference

#include <decalManager.h>

Inheritance diagram for DecalManager:

Inheritance graph
[legend]

Detailed Description

Manage decals in the world.


Public Member Functions

void addDecal (const Point3F &pos, const Point3F &rot, Point3F normal, const Point3F &scale, DecalData *, U32)
void ageDecal (U32)
void findSpace ()
 DecalManager ()
 ~DecalManager ()
void dataDeleted (DecalData *data)
void renderDecal ()
 DECLARE_CONOBJECT (DecalManager)
Decal Addition
These functions allow you to add new decals to the world.

void addDecal (const Point3F &pos, const Point3F &rot, Point3F normal, const Point3F &scale, DecalData *)
void addDecal (const Point3F &pos, const Point3F &rot, Point3F normal, DecalData *)
void addDecal (const Point3F &pos, Point3F normal, DecalData *)

Static Public Member Functions

static void consoleInit ()
 Register global constant variables and do other one-time initialization tasks in a subclass of ConsoleObject.

Data Fields

Vector< DecalInstance * > mFreePoolBlocks
DecalInstancemFreePool

Static Public Attributes

static U32 smMaxNumDecals
static U32 smDecalTimeout
static bool sgThisIsSelfIlluminated
static bool sgLastWasSelfIlluminated
static const U32 csmFreePoolBlockSize
static bool smDecalsOn

Protected Member Functions

bool prepRenderImage (SceneState *state, const U32 stateKey, const U32 startZone, const bool modifyBaseZoneState)
 Called when the SceneGraph is ready for the registration of RenderImages.
void renderObject (SceneState *state, SceneRenderImage *image)
 Called when the object is supposed to render itself.
DecalInstanceallocateDecalInstance ()
void freeDecalInstance (DecalInstance *)

Private Types

typedef SceneObject Parent

Private Attributes

Vector< DecalInstance * > mDecalQueue
bool mQueueDirty


Member Typedef Documentation

typedef SceneObject DecalManager::Parent [private]

Reimplemented from SceneObject.


Constructor & Destructor Documentation

DecalManager::DecalManager (  ) 

DecalManager::~DecalManager (  ) 


Member Function Documentation

void DecalManager::addDecal ( const Point3F pos,
const Point3F rot,
Point3F  normal,
const Point3F scale,
DecalData ,
U32   
)

void DecalManager::ageDecal ( U32   ) 

void DecalManager::findSpace (  ) 

bool DecalManager::prepRenderImage ( SceneState state,
const U32  stateKey,
const U32  startZone,
const bool  modifyBaseZoneState 
) [protected, virtual]

Called when the SceneGraph is ready for the registration of RenderImages.

See also:
SceneState
Parameters:
state SceneState
stateKey State key of the current SceneState
startZone Base zone index
modifyBaseZoneState If true, the object needs to modify the zone state.

Reimplemented from SceneObject.

void DecalManager::renderObject ( SceneState state,
SceneRenderImage image 
) [protected, virtual]

Called when the object is supposed to render itself.

Parameters:
state Current rendering state.
See also:
SceneState
Parameters:
image Image associated with this object to render.
See also:
SceneRenderImage

Reimplemented from SceneObject.

DecalInstance* DecalManager::allocateDecalInstance (  )  [protected]

void DecalManager::freeDecalInstance ( DecalInstance  )  [protected]

static void DecalManager::consoleInit (  )  [static]

Register global constant variables and do other one-time initialization tasks in a subclass of ConsoleObject.

Deprecated:
You should use ConsoleMethod and ConsoleFunction, not this, to register methods or commands.
See also:
console

Reimplemented from ConsoleObject.

void DecalManager::addDecal ( const Point3F pos,
const Point3F rot,
Point3F  normal,
const Point3F scale,
DecalData  
)

void DecalManager::addDecal ( const Point3F pos,
const Point3F rot,
Point3F  normal,
DecalData  
)

void DecalManager::addDecal ( const Point3F pos,
Point3F  normal,
DecalData  
)

void DecalManager::dataDeleted ( DecalData data  ) 

void DecalManager::renderDecal (  ) 

DecalManager::DECLARE_CONOBJECT ( DecalManager   ) 


Field Documentation

bool DecalManager::mQueueDirty [private]

bool DecalManager::smDecalsOn [static]




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