MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Toggle main menu visibility
Loading...
Searching...
No Matches
include
maplibre_native_c
platform
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
19
extern
"C"
{
20
#endif
21
35
MLN_BINDING(
"platforms=ios,macos,tvos"
)
36
MLN_API
mln_status
mln_apple_frame_pacer_create
(
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
50
typedef struct
mln_io_surface_ring_descriptor
{
51
uint32_t
size
;
52
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
54
uint32_t
buffer_count
MLN_BINDING(
"required=true"
);
56
mln_metal_context_descriptor
context
;
57
}
mln_io_surface_ring_descriptor
;
58
60
typedef
struct
mln_io_surface_frame
{
61
uint32_t
size
;
62
uint32_t
width
;
63
uint32_t
height
;
64
double
scale_factor
;
66
uint32_t
slot
;
68
void
*
surface
MLN_BINDING(
"lifetime=owner"
);
69
}
mln_io_surface_frame
;
70
92
MLN_BINDING(
"execution=lifecycle;platforms=ios,macos,tvos,visionos"
)
93
MLN_API
mln_status
mln_map_attach_io_surface_ring
(
94
mln_map
map, const
mln_io_surface_ring_descriptor
* descriptor,
95
const
mln_render_session_attach_options
* options,
96
mln_render_session
* out_session MLN_BINDING(
"direction=out"
),
97
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
98
) MLN_NOEXCEPT;
99
120
MLN_BINDING(
"view_owner=frame;platforms=ios,macos,tvos,visionos"
)
121
MLN_API
mln_status
mln_acquired_frame_get_io_surface
(
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_apple_frame_pacer_create
mln_status mln_apple_frame_pacer_create(const mln_frame_pacer_options *options, mln_frame_pacer *out_pacer, mln_diagnostic *out_diagnostic)
mln_acquired_frame_get_io_surface
mln_status mln_acquired_frame_get_io_surface(mln_acquired_frame frame, mln_io_surface_frame *out_frame, mln_diagnostic *out_diagnostic)
mln_map_attach_io_surface_ring
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)
base.h
mln_render_session
uint64_t mln_render_session
Definition
base.h:147
mln_map
uint64_t mln_map
Definition
base.h:112
mln_acquired_frame
uint64_t mln_acquired_frame
Definition
base.h:154
mln_status
mln_status
Definition
base.h:41
mln_frame_pacer
uint64_t mln_frame_pacer
Definition
base.h:164
completion.h
map.h
render_session.h
render_target.h
mln_completion
Definition
completion.h:66
mln_diagnostic
Definition
base.h:84
mln_frame_pacer_options
Definition
render_session.h:233
mln_io_surface_frame
Definition
apple.h:60
mln_io_surface_frame::slot
uint32_t slot
Definition
apple.h:66
mln_io_surface_frame::scale_factor
double scale_factor
Definition
apple.h:64
mln_io_surface_frame::height
uint32_t height
Definition
apple.h:63
mln_io_surface_frame::surface
void * surface
Definition
apple.h:68
mln_io_surface_frame::size
uint32_t size
Definition
apple.h:61
mln_io_surface_frame::width
uint32_t width
Definition
apple.h:62
mln_io_surface_ring_descriptor
Definition
apple.h:50
mln_io_surface_ring_descriptor::context
mln_metal_context_descriptor context
Definition
apple.h:56
mln_io_surface_ring_descriptor::buffer_count
uint32_t buffer_count
Definition
apple.h:54
mln_io_surface_ring_descriptor::logical_size
mln_logical_size logical_size
Definition
apple.h:52
mln_io_surface_ring_descriptor::size
uint32_t size
Definition
apple.h:51
mln_logical_size
Definition
map.h:196
mln_metal_context_descriptor
Definition
render_target.h:199
mln_render_session_attach_options
Definition
render_target.h:125
Generated by
1.18.0