MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / renderObject

Method renderObject

plugins/uiSystem.js:277–286  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

275 }
276
277 function renderObject(o)
278 {
279 if (!o.visible) return;
280
281 // render object and children
282 updateTransforms(o);
283 o.render();
284 for (const c of o.children)
285 renderObject(c);
286 }
287 uiSystem.uiObjects.forEach(o=> o.parent || renderObject(o));
288
289 if (uiDebug > 0)

Callers

nothing calls this directly

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected