|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
Go to the source code of this file.
Data Structures | |
| struct | mln_render_target_extent |
| struct | mln_metal_context_descriptor |
| struct | mln_vulkan_context_descriptor |
| struct | mln_wgl_context_descriptor |
| struct | mln_egl_context_descriptor |
| struct | mln_opengl_context_descriptor |
Enumerations | |
| enum | mln_opengl_context_provider_flag : uint32_t |
| enum | mln_opengl_context_platform : uint32_t { MLN_OPENGL_CONTEXT_PLATFORM_UNSPECIFIED = 0u , MLN_OPENGL_CONTEXT_PLATFORM_WGL = 1u , MLN_OPENGL_CONTEXT_PLATFORM_EGL = 2u } |
Functions | |
| mln_status | mln_render_target_extent_physical_size (const mln_render_target_extent *extent, uint32_t *out_width, uint32_t *out_height) |
| uint32_t | mln_opengl_supported_context_provider_mask (void) |
Shared public C API declarations for render target descriptors.
| enum mln_opengl_context_platform : uint32_t |
| enum mln_opengl_context_provider_flag : uint32_t |
OpenGL context providers supported by this build.
| uint32_t mln_opengl_supported_context_provider_mask | ( | void | ) |
Returns OpenGL context providers supported by this build.
| mln_status mln_render_target_extent_physical_size | ( | const mln_render_target_extent * | extent, |
| uint32_t * | out_width, | ||
| uint32_t * | out_height ) |
Computes the physical device-pixel size of a logical render target extent.
Each dimension is ceil(logical * scale_factor). Session-owned texture targets and surface targets are sized this way, so callers that allocate host resources alongside them can use this instead of repeating the formula.
Caller-owned borrowed texture targets state their physical size directly and do not derive it; see texture.h. Not every physical size is reachable from a logical extent, so a caller that starts from a physical size it does not control states that size rather than solving for a logical extent.
Returns: