|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <offscreen.h>
Data Fields | |
| uint32_t | size |
| mln_offscreen_device_option_fields | fields |
| uint32_t | adapter_index |
| bool | single_context |
| mln_open_gl_client_api | client_api |
Options for mln_offscreen_device_create().
| uint32_t mln_offscreen_device_options::adapter_index |
The GPU to use, as an index into the platform's list of GPUs.
| mln_open_gl_client_api mln_offscreen_device_options::client_api |
The OpenGL API that the device's sessions render with. An EGL device defaults to MLN_OPEN_GL_CLIENT_API_GLES, and takes MLN_OPEN_GL_CLIENT_API_GL too on Linux and FreeBSD. A WGL device takes only MLN_OPEN_GL_CLIENT_API_GL, its default, and a WebGL device only MLN_OPEN_GL_CLIENT_API_GLES, its default. Other devices take neither.
| mln_offscreen_device_option_fields mln_offscreen_device_options::fields |
| bool mln_offscreen_device_options::single_context |
Whether the device's sessions take turns in one OpenGL context instead of having one each. Only an EGL device reads it.
| uint32_t mln_offscreen_device_options::size |