xeolabs / scenejs

An extensible WebGL-based 3D engine. This is an archived project.
https://xeolabs.github.io/scenejs/
Other
649 stars 165 forks source link

Support forced rendering of one frame #137

Closed xeolabs closed 13 years ago

xeolabs commented 13 years ago
// render a frame only if one is needed, 
// ie. scene compilations were pending,
// returns true if frame was rendered:

var wasRendered = SceneJS.scene("my-scene").renderFrame() 

// Force a new frame regardless of whether
// compilations were needed, returns true:

SceneJS.scene("my-scene").renderFrame({ force: true }) 
xeolabs commented 13 years ago

Docs: https://github.com/xeolabs/scenejs/wiki/scene

Commit: https://github.com/xeolabs/scenejs/commit/1ca7a491f04932ac912b76a56342688bcc1b813d