Enumeration

MaplibreNativeFfiWebGlContextKind

Declaration

enum MaplibreNativeFfi.WebGlContextKind

Description [src]

How a render session gets its WebGL context.

See mln_web_gl_context_kind in the C API reference.

Members

MAPLIBRE_NATIVE_FFI_WEB_GL_CONTEXT_EXISTING

The session uses a context that you created with emscripten_webgl_create_context().

  • Value: 0
  • Available since: 0
MAPLIBRE_NATIVE_FFI_WEB_GL_CONTEXT_TRANSFERRED_CANVAS

The library transfers the canvas that canvas_selector names to a worker and creates the context there.

  • Value: 1
  • Available since: 0