@maplibre/native-ffi
    Preparing search index...

    Interface EglContextDescriptor

    EGL context fields shared by OpenGL render targets.

    See mln_egl_context_descriptor in the C API reference.

    interface EglContextDescriptor {
        clientApi?: OpenglClientApi;
        config?: bigint;
        display?: bigint;
        getProcAddress?: bigint;
        shareContext?: bigint;
    }
    Index
    clientApi?: OpenglClientApi

    Client API the session creates its context for. Required under dedicated ownership. A shared session queries share_context for it, so this is ignored there.

    config?: bigint

    Borrowed EGLConfig used to create the session context. Required. OpenGL texture targets require EGL_SURFACE_TYPE to include EGL_PBUFFER_BIT.

    display?: bigint

    Borrowed EGLDisplay. Required and kept initialized through teardown. eglGetDisplay(EGL_DEFAULT_DISPLAY) returns the same display for the whole process, so a shared display must stay initialized until every session using it has detached or been destroyed. The host must not call eglTerminate per session.

    getProcAddress?: bigint

    Optional eglGetProcAddress-compatible function for the host loader.

    shareContext?: bigint

    Borrowed EGLContext whose share group the session context joins. Required under shared ownership, where the session also takes its client API from this context. A dedicated session joins no share group, so it must be null there and names client_api instead.