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

#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

Detailed Description

Field Documentation

◆ adapter_index

uint32_t mln_offscreen_device_options::adapter_index

The GPU to use, as an index into the platform's list of GPUs.

◆ client_api

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.

◆ fields

mln_offscreen_device_option_fields mln_offscreen_device_options::fields

◆ single_context

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.

◆ size

uint32_t mln_offscreen_device_options::size

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