Documentation

Classes

Class CL3D.CubeSceneNode

A class rendering a simple cube of default size 10 with one material.

Extends CL3D.MeshSceneNode.

Class Overview
CL3D.CubeSceneNode(size, sizey, sizez)
A class rendering a simple 3d cube, used for testing purposes. Example showing how to add this to the current scene:
// add a cube to the scene
var cubenode = new CL3D.CubeSceneNode();
scene.getRootSceneNode().addChild(cubenode);

// set material texture of the cube:
cubenode.getMaterial(0).Tex1 = 
   engine.getTextureManager().getTexture("crate_wood.jpg", true);
Parameters:
size
Size of the cube, default this is 10.
sizey
sizez

Fields borrowed from class CL3D.SceneNode:
Id, Name, Pos, Rot, Scale, Selector, Visible
Methods borrowed from class CL3D.MeshSceneNode:
createClone, getBoundingBox, getMesh, getType, setMesh
Methods borrowed from class CL3D.SceneNode:
addAnimator, addChild, getAbsolutePosition, getAbsoluteTransformation, getAnimatorOfType, getAnimators, getChildren, getMaterial, getMaterialCount, getParent, getRelativeTransformation, getTransformedBoundingBox, init, isActuallyVisible, OnAnimate, OnRegisterSceneNode, removeAnimator, removeChild, render, updateAbsolutePosition

© 2011-2017 N.Gebhardt, Ambiera
Documentation generated by JsDoc Toolkit