MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
offscreen.h
Go to the documentation of this file.
1
5
6#ifndef MAPLIBRE_NATIVE_C_OFFSCREEN_H
7#define MAPLIBRE_NATIVE_C_OFFSCREEN_H
8
9#include <stdint.h>
10
11#include "base.h"
12#include "completion.h"
13#include "render_session.h"
14#include "render_target.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
28
31
34 uint32_t size;
38 MLN_BINDING("mask=fields;bit=MLN_OFFSCREEN_DEVICE_OPTION_ADAPTER_INDEX");
44 MLN_BINDING("mask=fields;bit=MLN_OFFSCREEN_DEVICE_OPTION_SINGLE_CONTEXT");
54 MLN_BINDING("mask=fields;bit=MLN_OFFSCREEN_DEVICE_OPTION_CLIENT_API");
56
62 uint32_t size;
63 mln_logical_size logical_size MLN_BINDING("required=true");
65
81 const mln_offscreen_device_options* options MLN_BINDING("nullable=true"),
82 mln_offscreen_device* out_device MLN_BINDING("direction=out"),
83 mln_diagnostic* out_diagnostic
84) MLN_NOEXCEPT;
85
93) MLN_NOEXCEPT;
94
110MLN_BINDING("execution=lifecycle")
112 mln_map map, const mln_offscreen_descriptor* descriptor,
114 mln_offscreen_device device MLN_BINDING("nullable=true"),
115 mln_render_session* out_session MLN_BINDING("direction=out"),
116 const mln_completion* completion, mln_diagnostic* out_diagnostic
117) MLN_NOEXCEPT;
118
119#ifdef __cplusplus
120}
121#endif
122
123#endif
uint64_t mln_render_session
Definition base.h:147
uint64_t mln_map
Definition base.h:112
uint64_t mln_offscreen_device
Definition base.h:122
mln_status
Definition base.h:41
mln_offscreen_device_option_field
Definition offscreen.h:23
@ MLN_OFFSCREEN_DEVICE_OPTION_SINGLE_CONTEXT
Definition offscreen.h:25
@ MLN_OFFSCREEN_DEVICE_OPTION_CLIENT_API
Definition offscreen.h:26
@ MLN_OFFSCREEN_DEVICE_OPTION_ADAPTER_INDEX
Definition offscreen.h:24
mln_status mln_offscreen_device_create(const mln_offscreen_device_options *options, mln_offscreen_device *out_device, mln_diagnostic *out_diagnostic)
mln_status mln_map_attach_offscreen(mln_map map, const mln_offscreen_descriptor *descriptor, const mln_render_session_attach_options *options, mln_offscreen_device device, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
void mln_offscreen_device_release(mln_offscreen_device device)
uint32_t mln_offscreen_device_option_fields
Definition offscreen.h:30
mln_open_gl_client_api
Definition render_target.h:268
Definition completion.h:66
Definition base.h:84
Definition map.h:196
Definition offscreen.h:61
mln_logical_size logical_size
Definition offscreen.h:63
uint32_t size
Definition offscreen.h:62
Definition offscreen.h:33
bool single_context
Definition offscreen.h:44
mln_open_gl_client_api client_api
Definition offscreen.h:54
uint32_t size
Definition offscreen.h:34
mln_offscreen_device_option_fields fields
Definition offscreen.h:35
uint32_t adapter_index
Definition offscreen.h:38
Definition render_target.h:125