WebGlContextDescriptor class final
The WebGL context or canvas that a render session uses.
See mln_web_gl_context_descriptor in the
C API reference.
Constructors
- WebGlContextDescriptor({WebGlContextKind kind = const WebGlContextKind.fromRawValue(0), int context = 0, String canvasSelector = ''})
-
const
Properties
- canvasSelector → String
-
The canvas's CSS selector, for a transferred canvas.
final
- context → int
-
Your
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE, for an existing context.final - hashCode → int
-
The hash code for this object.
no setterinherited
- kind → WebGlContextKind
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{WebGlContextKind? kind, int? context, String? canvasSelector}) → WebGlContextDescriptor - A copy of this value with the given members replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited