Liking cljdoc? Tell your friends :D
ClojureScript only.

gl.WEBGL_lose_context

The WEBGL_lose_context extension is part of the WebGL API and functions to simulate losing and restoring a gl.WebGLRenderingContext.

The WEBGL_lose_context extension is part of the WebGL API and
functions to simulate losing and restoring a `gl.WebGLRenderingContext`.
raw docstring

lose-contextcljs

(lose-context this & args)

Method.

The WEBGL_lose_context.loseContext() method is part of the WebGL and allows you to simulate losing the context of a gl.WebGLRenderingContext

gl.getExtension('WEBGL_lose_context').loseContext();

See also: https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/loseContext

Method.

The WEBGL_lose_context.loseContext() method is part of the WebGL
and allows you to simulate losing the context of a `gl.WebGLRenderingContext`

`gl.getExtension('WEBGL_lose_context').loseContext();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/loseContext`
sourceraw docstring

restore-contextcljs

(restore-context this & args)

Method.

The WEBGL_lose_context.restoreContext() method is part of the API and allows you to simulate restoring the context of a gl.WebGLRenderingContext

gl.getExtension('WEBGL_lose_context').restoreContext();

See also: https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/restoreContext

Method.

The WEBGL_lose_context.restoreContext() method is part of the
API and allows you to simulate restoring the context of a `gl.WebGLRenderingContext`

`gl.getExtension('WEBGL_lose_context').restoreContext();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/restoreContext`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close