Table of Contents

Class WebGLRenderingContext

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The WebGLRenderingContext interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML canvas element.

[Value("WebGLRenderingContext")]
public class WebGLRenderingContext
Inheritance
WebGLRenderingContext
Inherited Members

Remarks

To get an access to a WebGL context for 2D and/or 3D graphics rendering, call GetContext(string, dynamic) on a <canvas> element, supplying "webgl" as the argument:

Once you have the WebGL rendering context for a canvas, you can render within it. The WebGL tutorial has more information, examples, and resources on how to get started with WebGL.

If you require a WebGL 2.0 context, see WebGL2RenderingContext; this supplies access to an implementation of OpenGL ES 3.0 graphics.

-HTMLCanvasElement

See also on MDN

Constructors

WebGLRenderingContext()

public WebGLRenderingContext()