MCPcopy
hub / github.com/bgstaal/multipleWindow3dScene / init

Function init

main.js:53–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 };
52
53 function init ()
54 {
55 initialized = true;
56
57 // add a short timeout because window.offsetX reports wrong values before a short period
58 setTimeout(() => {
59 setupScene();
60 setupWindowManager();
61 resize();
62 updateWindowShape(false);
63 render();
64 window.addEventListener('resize', resize);
65 }, 500)
66 }
67
68 function setupScene ()
69 {

Callers 1

main.jsFile · 0.85

Calls 5

setupSceneFunction · 0.85
setupWindowManagerFunction · 0.85
resizeFunction · 0.85
updateWindowShapeFunction · 0.85
renderFunction · 0.85

Tested by

no test coverage detected