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

    Interface OpenglSurfaceDescriptor

    OpenGL attachment options for a native surface.

    See mln_opengl_surface_descriptor in the C API reference.

    interface OpenglSurfaceDescriptor {
        context?: OpenglContextDescriptor;
        extent?: LogicalExtent;
        surface?: bigint;
    }
    Index

    Borrowed OpenGL context provider data.

    extent?: LogicalExtent

    Logical surface extent. A scale_factor that differs from the map's is accepted and logged as a warning.

    surface?: bigint

    Borrowed platform surface handle: an HDC for WGL and an EGLSurface for EGL, both required. Null for WebGL, whose context carries its canvas binding.