MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
render_target.h
Go to the documentation of this file.
1
5
6#ifndef MAPLIBRE_NATIVE_C_RENDER_TARGET_H
7#define MAPLIBRE_NATIVE_C_RENDER_TARGET_H
8
9#include <stdint.h>
10
11#include "base.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
19 uint32_t size;
21 uint32_t width;
23 uint32_t height;
27
30 uint32_t size;
32 void* device;
34
54
56typedef enum mln_opengl_context_provider_flag : uint32_t {
57 MLN_OPENGL_CONTEXT_PROVIDER_FLAG_WGL = 1u << 0u,
58 MLN_OPENGL_CONTEXT_PROVIDER_FLAG_EGL = 1u << 1u,
60
62typedef enum mln_opengl_context_platform : uint32_t {
65 MLN_OPENGL_CONTEXT_PLATFORM_WGL = 1u,
66 MLN_OPENGL_CONTEXT_PLATFORM_EGL = 2u,
68
79
82 uint32_t size;
84 void* display;
90 void* config;
98
109
113MLN_API uint32_t mln_opengl_supported_context_provider_mask(void) MLN_NOEXCEPT;
114
115#ifdef __cplusplus
116}
117#endif
118
119#endif // MAPLIBRE_NATIVE_C_RENDER_TARGET_H
mln_opengl_context_platform
Definition render_target.h:62
@ MLN_OPENGL_CONTEXT_PLATFORM_UNSPECIFIED
Definition render_target.h:64
mln_opengl_context_provider_flag
Definition render_target.h:56
uint32_t mln_opengl_supported_context_provider_mask(void)
Definition render_target.h:81
void * get_proc_address
Definition render_target.h:96
void * display
Definition render_target.h:84
void * config
Definition render_target.h:90
void * share_context
Definition render_target.h:94
Definition render_target.h:29
void * device
Definition render_target.h:32
Definition render_target.h:100
mln_opengl_context_platform platform
Definition render_target.h:103
Definition render_target.h:18
uint32_t height
Definition render_target.h:23
uint32_t width
Definition render_target.h:21
double scale_factor
Definition render_target.h:25
Definition render_target.h:36
void * instance
Definition render_target.h:39
void * physical_device
Definition render_target.h:41
uint32_t graphics_queue_family_index
Definition render_target.h:47
void * device
Definition render_target.h:43
void * graphics_queue
Definition render_target.h:45
void * get_device_proc_addr
Definition render_target.h:52
void * get_instance_proc_addr
Definition render_target.h:50
Definition render_target.h:70
void * share_context
Definition render_target.h:75
void * device_context
Definition render_target.h:73
void * get_proc_address
Definition render_target.h:77