Class Index | File Index

Classes


Class JSC3D.Scene

Scene This class implements scene that contains a group of meshes that forms the world.
Defined in: jsc3d.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JSC3D.Scene(name)
Method Summary
Method Attributes Method Name and Description
 
addChild(mesh)
Add a mesh to the scene.
 
Get all meshes in the scene.
 
init()
Initialize the scene.
 
See if the scene is empty.
 
Remove a mesh from the scene.
Class Detail
JSC3D.Scene(name)
Parameters:
name
Method Detail
addChild(mesh)
Add a mesh to the scene.
Parameters:
{JSC3D.Mesh} mesh
the mesh to be added.

{Array} getChildren()
Get all meshes in the scene.
Returns:
{Array} meshes as an array.

init()
Initialize the scene.

{Boolean} isEmpty()
See if the scene is empty.
Returns:
{Boolean} true if it contains no meshes; false if it has any.

removeChild(mesh)
Remove a mesh from the scene.
Parameters:
{JSC3D.Mesh} mesh
the mesh to be added.

Documentation generated by JsDoc Toolkit 2.1.0 on Sat Oct 13 2012 19:21:53 GMT+0800 (CST)