Class tQuery.World

tQuery.World

Class Summary
Constructor Attributes Constructor Name and Description
 
tQuery.World(object)
Handle world (aka scene+camera+renderer)

Method Summary

Class Detail

tQuery.World(object)
Handle world (aka scene+camera+renderer)
Parameters:
{THREE.Material} object
an instance or an array of instance

Method Detail

  • add(object3D)
    add an object to the scene
    Parameters:
    {tQuery.Object3D} object3D
    to add to the scene (THREE.Object3D is accepted)
  • {tQuery.World} appendTo(domElement)
    append renderer domElement
    Parameters:
    {DOMElement} domElement
    the domelement which will be parent
    Returns:
    {tQuery.World} for chained API
  • destroy()
    destructor
  • {Boolean} hasCameraControls()
    test if there is a camera controls
    Returns:
    {Boolean} true if there is, false otherwise
  • <static> {Boolean} tQuery.World.hasWebGL()
    Returns:
    {Boolean} true if webgl is available, false otherwise
  • remove(object3D)
    remove an object to the scene
    Parameters:
    {tQuery.Object3D} object3D
    to add to the scene (THREE.Object3D is accepted)
  • {tQuery.World} removeCameraControls()
    remove the camera controls
    Returns:
    {tQuery.World} for chained API
  • start()
    Start the loop
  • stop()
    Stop the loop