Constructordojox.gfx3d.Viewport

dojo.require("dojox.gfx3d.object");
defined in dojox/gfx3d/object.js

a viewport/container for 3D objects, which knows the camera and lightings

Usage

function () (view source)

Jump to PropertiesFunctionsBack to top

FunctionaddLights(lights: Array)
add new light/lights to the viewport.
FunctionaddTodo(newObject)
multiplies the existing matrix with an argument on left side (matrix * this.matrix)
multiplies the existing matrix with an argument on right side (this.matrix * matrix)
a shortcut for dojox.gfx3d.Object.applyRightTransform
iterate all children and call their render callback function.
sets a transformation matrix
FunctionsetLights(lights: Array|Object, ambient, specular)
set the lights

Jump to FunctionsPropertiesBack to top