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

    Interface OpenglBorrowedTextureDescriptor

    OpenGL attachment options for a borrowed texture target.

    See mln_opengl_borrowed_texture_descriptor in the C API reference.

    interface OpenglBorrowedTextureDescriptor {
        context?: OpenglContextDescriptor;
        extent?: LogicalExtent;
        physicalHeight?: number;
        physicalWidth?: number;
        target?: number;
        textures?: readonly OpenglBorrowedTexture[];
    }
    Index

    Borrowed OpenGL context provider data. The textures must belong to this context or a context in the same share group.

    extent?: LogicalExtent

    Logical texture extent; physical_width and physical_height give the texture's size. A scale_factor that differs from the map's is accepted and logged as a warning.

    physicalHeight?: number

    Physical texture height in device pixels. Must be positive. Defaults to 256.

    physicalWidth?: number

    Physical texture width in device pixels. Must be positive. Defaults to 256.

    target?: number

    OpenGL texture target of every texture. Must be GL_TEXTURE_2D.

    textures?: readonly OpenglBorrowedTexture[]

    The ring's textures, one per slot, in slot order. Required.