UNPKG
glam
Version:
latest (5.0.1)
5.0.1
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.0.0
2.1.1
2.0.0
1.0.0
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.0
Experimental WebGL Engine
github.com/glamjs/glam
glamjs/glam
glam
/
lib
/
engine
/
boot.js
17 lines
(13 loc)
•
294 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
) }