glam
Version:
Experimental WebGL Engine
22 lines (18 loc) • 382 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = bootEngine;
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);
}