Table of Contents

Class WebGLContextEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The WebGLContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.

[Value("WebGLContextEvent")]
public class WebGLContextEvent : Event
Inheritance
WebGLContextEvent
Inherited Members

Remarks

Constructors

WebGLContextEvent()

public WebGLContextEvent()

WebGLContextEvent(string, WebGLContextEventInit)

The WebGLContextEvent() constructor creates a new WebGLContextEvent object.

public WebGLContextEvent(string type, WebGLContextEventInit eventInit = null)

Parameters

type string
eventInit WebGLContextEventInit

Remarks

NOTE

You typically don't need to call this constructor; the browser creates these objects automatically when WebGL context events get fired. To manually trigger a webglcontextlost event, use LoseContext().

-webglcontextlost
-webglcontextrestored
-webglcontextcreationerror

See also on MDN

Properties

StatusMessage

The read-only WebGLContextEvent.statusMessage property contains additional event status information, or is an empty string if no additional information is available.

[Value("statusMessage")]
public string StatusMessage { get; }

Property Value

string

Remarks