WebGLRenderingContext
and WebGL2RenderingContext
are the JavaScript(?) interfaces for the OpenGL ES graphics rendering context. They allow to draw onto the surface of a <canvas>
HTML element. WebGLRenderingContext
or WebGL2RenderingContext
object can be obtained by calling HTMLCanvasElement.getContext
with the parameter value webgl
or webgl2
.