MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
apple.h
Go to the documentation of this file.
1
6
7#ifndef MAPLIBRE_NATIVE_C_PLATFORM_APPLE_H
8#define MAPLIBRE_NATIVE_C_PLATFORM_APPLE_H
9
10#include <stdint.h>
11
12#include "../base.h"
13#include "../completion.h"
14#include "../map.h"
15#include "../render_session.h"
16#include "../render_target.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
35MLN_BINDING("platforms=ios,macos,tvos")
37 const mln_frame_pacer_options* options MLN_BINDING("nullable=true"),
38 mln_frame_pacer* out_pacer MLN_BINDING("direction=out"),
39 mln_diagnostic* out_diagnostic
40) MLN_NOEXCEPT;
41
51 uint32_t size;
52 mln_logical_size logical_size MLN_BINDING("required=true");
54 uint32_t buffer_count MLN_BINDING("required=true");
58
60typedef struct mln_io_surface_frame {
61 uint32_t size;
62 uint32_t width;
63 uint32_t height;
66 uint32_t slot;
68 void* surface MLN_BINDING("lifetime=owner");
70
92MLN_BINDING("execution=lifecycle;platforms=ios,macos,tvos,visionos")
94 mln_map map, const mln_io_surface_ring_descriptor* descriptor,
96 mln_render_session* out_session MLN_BINDING("direction=out"),
97 const mln_completion* completion, mln_diagnostic* out_diagnostic
98) MLN_NOEXCEPT;
99
120MLN_BINDING("view_owner=frame;platforms=ios,macos,tvos,visionos")
122 mln_acquired_frame frame,
123 mln_io_surface_frame* out_frame MLN_BINDING("direction=out"),
124 mln_diagnostic* out_diagnostic
125) MLN_NOEXCEPT;
126
127#ifdef __cplusplus
128}
129#endif
130
131#endif // MAPLIBRE_NATIVE_C_PLATFORM_APPLE_H
mln_status mln_apple_frame_pacer_create(const mln_frame_pacer_options *options, mln_frame_pacer *out_pacer, mln_diagnostic *out_diagnostic)
mln_status mln_acquired_frame_get_io_surface(mln_acquired_frame frame, mln_io_surface_frame *out_frame, mln_diagnostic *out_diagnostic)
mln_status mln_map_attach_io_surface_ring(mln_map map, const mln_io_surface_ring_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
uint64_t mln_render_session
Definition base.h:147
uint64_t mln_map
Definition base.h:112
uint64_t mln_acquired_frame
Definition base.h:154
mln_status
Definition base.h:41
uint64_t mln_frame_pacer
Definition base.h:164
Definition completion.h:66
Definition base.h:84
Definition render_session.h:233
Definition apple.h:60
uint32_t slot
Definition apple.h:66
double scale_factor
Definition apple.h:64
uint32_t height
Definition apple.h:63
void * surface
Definition apple.h:68
uint32_t size
Definition apple.h:61
uint32_t width
Definition apple.h:62
Definition apple.h:50
mln_metal_context_descriptor context
Definition apple.h:56
uint32_t buffer_count
Definition apple.h:54
mln_logical_size logical_size
Definition apple.h:52
uint32_t size
Definition apple.h:51
Definition map.h:196
Definition render_target.h:199
Definition render_target.h:125