Class tQuery.Loop
This class handle the rendering loop
- Defined in: tquery.loop.js
Constructor Attributes | Constructor Name and Description |
---|---|
tQuery.Loop(world)
Handle the rendering loop
|
Method Summary
Class Detail
tQuery.Loop(world)
Handle the rendering loop
- Parameters:
- {THREE.World} world
- the world to display (optional)
Method Detail
-
destroy()destructor
-
{Function} hook(priority, callback)hook a callback at a given priority
- Parameters:
- {Number} priority
- for this callback
- {Function} callback
- the function which will be called function(time){}
- Returns:
- {Function} the callback function. usefull for this._$callback = loop.hook(this._callback.bind(this)) and later loop.unhook(this._$callback)
-
{tQuery.Loop} start()start looping
- Returns:
- {tQuery.Loop} chained API
-
{tQuery.Loop} stop()stop looping
- Returns:
- {tQuery.Loop} chained API
-
{tQuery.Loop} unhook(priority, callback)unhook a callback at a given priority
- Parameters:
- {Number} priority
- for this callback
- {Function} callback
- the function which will be called function(time){}
- Returns:
- {tQuery.Loop} chained API