Skip to content

LightingShadowManager

LuisAntonRebollo edited this page Dec 4, 2013 · 1 revision
<SCRIPT SRC="../../../include/tutorial.js" LANGUAGE="JavaScript"></SCRIPT> <SCRIPT SRC="../../../include/prototype.js" LANGUAGE="JavaScript"></SCRIPT> <SCRIPT SRC="../../../include/scriptaculous.js" LANGUAGE="JavaScript"></SCRIPT> <SCRIPT SRC="../../../include/glossaryLookUp.js" LANGUAGE="JavaScript"></SCRIPT> <SCRIPT SRC="../../../include/referenceLookUp.js" LANGUAGE="JavaScript"></SCRIPT> <SCRIPT SRC="../../../include/component.js" LANGUAGE="JavaScript"></SCRIPT> <SCRIPT SRC="../../../include/componentContainer.js" LANGUAGE="JavaScript"></SCRIPT> <SCRIPT>DocImagePath = "../../../";</SCRIPT> <script> // this script chunk is to update the ToC to the current doc and expand it pageID = 24; parent.leftFrame.expandToItem('tree2', 'doc24'); var element = parent.leftFrame.document.getElementById('doc24'); if((element) && (element.className==parent.leftFrame.nodeClosedClass)) { element.className = parent.leftFrame.nodeOpenClass } ; </script> <title>Torque 3D/Engine/ShadowManager</title>

ShadowManager Class Reference


activate()

Called when the shadow manager should become active. It will assign the class variable "SceneGraph* mSceneManager" to the global "SceneGraph* gClientSceneGraph" variable.



Syntax

activate()

Returns

No return value.


Examples
// Called from within the AdvancedLightManager::activate, SHADOWMGR is a #define 
// of the ShadowMapManager::instance() function.
SHADOWMGR->activate();

deactivate()

Called when we don't want the shadow manager active (should clean up). As this is basically just a base class, this function does nothing and should be overridden by the super class to clean clean up its own data.



Syntax

deactivate()

Returns

No return value.


Examples
// Called from within the AdvancedLightManager::deactivate, SHADOWMGR is a #define 
// of the ShadowMapManager::instance() function.
SHADOWMGR->deactivate();

canActivate()

Called to find out if it is valid to activate this shadow system. Currently this function will always return true.



Syntax

canActivate()

Returns
  • bool: Will always return true.

Examples

Currently this function is not called in the base and is left up to the user to implement.

Clone this wiki locally