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
-WebGLRenderingContext.IsContextLost
-WEBGL_lose_context, LoseContext(), RestoreContext()
-Events: webglcontextlost, webglcontextrestored, webglcontextcreationerror
Constructors
WebGLContextEvent()
public WebGLContextEvent()
WebGLContextEvent(string, WebGLContextEventInit)
The WebGLContextEvent() constructor creates a new WebGLContextEvent object.
public WebGLContextEvent(string type, WebGLContextEventInit eventInit = null)
Parameters
typestringeventInitWebGLContextEventInit
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
webglcontextlostevent, use LoseContext().
-webglcontextlost
-webglcontextrestored
-webglcontextcreationerror
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; }