Class Index | File Index

Classes


Class threedee.Scene

A scene.
Defined in: Scene.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Constructs a new scene.
Method Summary
Method Attributes Method Name and Description
 
Returns debugging info.
 
Returns the global ambient color.
 
Returns the current root node.
 
render(g, width, height, renderOptions, camera)
Renders the scene.
 
setGlobalAmbient(globalAmbient)
Sets the global ambient color.
 
setRootNode(rootNode)
Sets the root node.
 
update(delta)
Updates the scene with the specified time delta (milliseconds);
Class Detail
threedee.Scene()
Constructs a new scene.
Method Detail
{string} getDebugInfo()
Returns debugging info. The debugInfo flag in the rendering options must be set to true to get up-to-date debug info.
Returns:
{string} The debug info

{!threedee.Color} getGlobalAmbient()
Returns the global ambient color.
Returns:
{!threedee.Color} The global ambient color

{?threedee.SceneNode} getRootNode()
Returns the current root node.
Returns:
{?threedee.SceneNode} The current root node. Null if none set.

render(g, width, height, renderOptions, camera)
Renders the scene.
Parameters:
{!CanvasRenderingContext2D} g
The graphics context
{number} width
The output width in pixels
{number} height
The output height in pixels
{?threedee.RenderOptions=} renderOptions
The render options. If not set then the default options are used.
{?threedee.CameraNode=} camera
The camera node to use. If it is null then a fixed default camera at position 0,0,0 looking in direction 0,0,1 is used

setGlobalAmbient(globalAmbient)
Sets the global ambient color.
Parameters:
{!threedee.Color} globalAmbient
The global ambient color to set

setRootNode(rootNode)
Sets the root node.
Parameters:
{?threedee.SceneNode} rootNode
The root node to set. Null to unset.

update(delta)
Updates the scene with the specified time delta (milliseconds);
Parameters:
{number} delta
The time elapsed since the last call to this method measured in milliseconds. This is optional. If not specified then it is calculated automatically

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jan 03 2012 16:18:58 GMT+0100 (CET)