WebGlContextDescriptor

data class WebGlContextDescriptor(val kind: WebGlContextKind = WebGlContextKind.EXISTING, val context: Int = 0, val canvasSelector: String = "")

The WebGL context or canvas that a render session uses.

See mln_web_gl_context_descriptor in the C API reference.

Constructors

Link copied to clipboard
constructor(kind: WebGlContextKind = WebGlContextKind.EXISTING, context: Int = 0, canvasSelector: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The canvas's CSS selector, for a transferred canvas.

Link copied to clipboard

Your EMSCRIPTEN_WEBGL_CONTEXT_HANDLE, for an existing context.

Link copied to clipboard