UNPKG

glam

Version:

Experimental WebGL Engine

17 lines (13 loc) 294 B
export default function bootEngine( engine, config, onReady ) { if( onReady ) { engine.emitter.on('ready', onReady) } // Defer execution start // TODO - async asset loading setTimeout(function() { engine.start() if( config.autoStart ) { engine.loop.start() } }, 10) }