MCPcopy Create free account
hub / github.com/melonjs/melonJS / getManagedContext

Function getManagedContext

packages/spine-plugin/src/glContext.js:20–27  ·  view source on GitHub ↗
(canvas)

Source from the content-addressed store, hash-verified

18 * @ignore
19 */
20export function getManagedContext(canvas) {
21 let context = contexts.get(canvas);
22 if (typeof context === "undefined") {
23 context = new ManagedWebGLRenderingContext(canvas);
24 contexts.set(canvas, context);
25 }
26 return context;
27}

Callers 3

constructorMethod · 0.90
initMethod · 0.90
constructorMethod · 0.90

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected