MCPcopy
hub / github.com/microsoft/SandDance / getParameter

Function getParameter

docs/tests/v2/es6/js/sanddance.js:5347–5350  ·  view source on GitHub ↗
(gl, key)

Source from the content-addressed store, hash-verified

5345
5346
5347function getParameter(gl, key) {
5348 var getter = GL_PARAMETER_GETTERS[key];
5349 return getter ? getter(gl, Number(key)) : gl.getParameter(Number(key));
5350} // Copies the state from a context (gl.getParameter should not be overriden)
5351// Reads the entire WebGL state from a context
5352// Caveat: This generates a huge amount of synchronous driver roundtrips and should be
5353// considered a very slow operation, to be used only if/when a context already manipulated

Callers 4

sanddance-app.jsFile · 0.85
sanddance.jsFile · 0.85
getParametersFunction · 0.85

Calls 1

getterFunction · 0.50

Tested by

no test coverage detected