MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_opengl_surface_descriptor Struct Reference

#include <surface.h>

Data Fields

mln_logical_extent extent
mln_opengl_context_descriptor context
void * surface

Detailed Description

OpenGL attachment options for a native surface.

Field Documentation

◆ context

mln_opengl_context_descriptor mln_opengl_surface_descriptor::context

Borrowed OpenGL context provider data.

◆ extent

mln_logical_extent mln_opengl_surface_descriptor::extent

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

◆ surface

void* mln_opengl_surface_descriptor::surface

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


The documentation for this struct was generated from the following file: