Packageorg.papervision3d.core.render.material
Classpublic class MaterialManager



Public Methods
 MethodDefined by
  
MaterialManager singleton constructor
MaterialManager
  
[static] Returns a singleton instance of the MaterialManager
MaterialManager
  
[static] Registers a material
MaterialManager
  
[static] Unregisters a material
MaterialManager
  
Allows for materials that animate or change (e.g., MovieMaterial) to be updated after the render
MaterialManager
  
Allows for materials that animate or change (e.g., MovieMaterial) to be updated prior to the render
MaterialManager
Constructor detail
MaterialManager()constructor
public function MaterialManager()

MaterialManager singleton constructor

Method detail
getInstance()method
public static function getInstance():MaterialManager

Returns a singleton instance of the MaterialManager

Returns
MaterialManager
registerMaterial()method 
public static function registerMaterial(material:MaterialObject3D):void

Registers a material

Parameters
material:MaterialObject3D
unRegisterMaterial()method 
public static function unRegisterMaterial(material:MaterialObject3D):void

Unregisters a material

Parameters
material:MaterialObject3D
updateMaterialsAfterRender()method 
public function updateMaterialsAfterRender(renderSessionData:RenderSessionData):void

Allows for materials that animate or change (e.g., MovieMaterial) to be updated after the render

Parameters
renderSessionData:RenderSessionData — the data used in updating the material
updateMaterialsBeforeRender()method 
public function updateMaterialsBeforeRender(renderSessionData:RenderSessionData):void

Allows for materials that animate or change (e.g., MovieMaterial) to be updated prior to the render

Parameters
renderSessionData:RenderSessionData — the data used in updating the material