torque Torque Game Engine Documentation
TGE Version 1.5.2

SceneLighting::ObjectProxy Class Reference

#include <sgSceneLighting.h>

Inheritance diagram for SceneLighting::ObjectProxy:

Inheritance graph
[legend]

Detailed Description

Create a proxy for each object to store data.


Public Member Functions

 ObjectProxy (SceneObject *obj)
virtual ~ObjectProxy ()
SceneObjectoperator-> ()
SceneObjectgetObject ()
Lighting Interface
virtual bool loadResources ()
virtual void init ()
virtual bool preLight (LightInfo *)
virtual void light (LightInfo *)
virtual void postLight (bool lastLight)
Persistence
We cache lighting information to cut down on load times.

There are flags such as ForceAlways and LoadOnly which allow you to control this behaviour.

bool calcValidation ()
bool isValidChunk (PersistInfo::PersistChunk *)
virtual U32 getResourceCRC ()=0
virtual bool setPersistInfo (PersistInfo::PersistChunk *)
virtual bool getPersistInfo (PersistInfo::PersistChunk *)

Data Fields

SimObjectPtr< SceneObjectmObj
U32 mChunkCRC


Constructor & Destructor Documentation

SceneLighting::ObjectProxy::ObjectProxy ( SceneObject obj  )  [inline]

virtual SceneLighting::ObjectProxy::~ObjectProxy (  )  [inline, virtual]


Member Function Documentation

SceneObject* SceneLighting::ObjectProxy::operator-> (  )  [inline]

SceneObject* SceneLighting::ObjectProxy::getObject (  )  [inline]

virtual bool SceneLighting::ObjectProxy::loadResources (  )  [inline, virtual]

Reimplemented in SceneLighting::InteriorProxy.

virtual void SceneLighting::ObjectProxy::init (  )  [inline, virtual]

virtual bool SceneLighting::ObjectProxy::preLight ( LightInfo  )  [inline, virtual]

virtual void SceneLighting::ObjectProxy::light ( LightInfo  )  [inline, virtual]

virtual void SceneLighting::ObjectProxy::postLight ( bool  lastLight  )  [inline, virtual]

bool SceneLighting::ObjectProxy::calcValidation (  ) 

bool SceneLighting::ObjectProxy::isValidChunk ( PersistInfo::PersistChunk  ) 

virtual U32 SceneLighting::ObjectProxy::getResourceCRC (  )  [pure virtual]

virtual bool SceneLighting::ObjectProxy::setPersistInfo ( PersistInfo::PersistChunk  )  [virtual]

virtual bool SceneLighting::ObjectProxy::getPersistInfo ( PersistInfo::PersistChunk  )  [virtual]


Field Documentation




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