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
win32.h
Go to the documentation of this file.
1
5
6
#ifndef MAPLIBRE_NATIVE_C_PLATFORM_WIN32_H
7
#define MAPLIBRE_NATIVE_C_PLATFORM_WIN32_H
8
9
#include <stdint.h>
10
11
#include "
../base.h
"
12
#include "
../completion.h
"
13
#include "
../map.h
"
14
#include "
../render_session.h
"
15
#include "
../render_target.h
"
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
22
typedef
struct
mln_win32_window_descriptor
{
23
uint32_t
size
;
24
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
26
void
*
window
MLN_BINDING(
"required=true"
);
27
}
mln_win32_window_descriptor
;
28
30
typedef
struct
mln_win32_window_replacement
{
31
uint32_t
size
;
32
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
34
void
*
window
MLN_BINDING(
"required=true"
);
35
}
mln_win32_window_replacement
;
36
67
MLN_BINDING(
"execution=lifecycle;platforms=windows"
)
68
MLN_API
mln_status
mln_map_attach_win32_window
(
69
mln_map
map, const
mln_win32_window_descriptor
* descriptor,
70
mln_vulkan_device
device MLN_BINDING(
"nullable=true"
),
71
const
mln_render_session_attach_options
* options,
72
mln_render_session
* out_session MLN_BINDING(
"direction=out"
),
73
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
74
) MLN_NOEXCEPT;
75
96
MLN_BINDING(
"execution=operation;platforms=windows"
)
97
MLN_API
mln_status
mln_render_session_set_win32_window_target
(
98
mln_render_session
session, const
mln_win32_window_replacement
* replacement,
99
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
100
) MLN_NOEXCEPT;
101
110
typedef struct
mln_dxgi_shared_texture_ring_descriptor
{
111
uint32_t
size
;
112
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
114
uint32_t
texture_count
MLN_BINDING(
"required=true"
);
115
}
mln_dxgi_shared_texture_ring_descriptor
;
116
118
typedef
struct
mln_dxgi_shared_texture_frame
{
119
uint32_t
size
;
120
uint32_t
width
;
121
uint32_t
height
;
122
double
scale_factor
;
124
uint32_t
slot
;
126
uint32_t
format
;
128
void
*
handle
MLN_BINDING(
"lifetime=owner"
);
129
}
mln_dxgi_shared_texture_frame
;
130
159
MLN_BINDING(
"execution=lifecycle;platforms=windows"
)
160
MLN_API
mln_status
mln_map_attach_dxgi_shared_texture_ring
(
161
mln_map
map, const
mln_dxgi_shared_texture_ring_descriptor
* descriptor,
162
mln_vulkan_device
device MLN_BINDING(
"nullable=true"
),
163
const
mln_render_session_attach_options
* options,
164
mln_render_session
* out_session MLN_BINDING(
"direction=out"
),
165
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
166
) MLN_NOEXCEPT;
167
190
MLN_BINDING(
"view_owner=frame;platforms=windows"
)
191
MLN_API
mln_status
mln_acquired_frame_get_dxgi_shared_texture
(
192
mln_acquired_frame
frame,
193
mln_dxgi_shared_texture_frame
* out_frame MLN_BINDING(
"direction=out"
),
194
mln_diagnostic
* out_diagnostic
195
) MLN_NOEXCEPT;
196
197
#ifdef __cplusplus
198
}
199
#endif
200
201
#endif
// MAPLIBRE_NATIVE_C_PLATFORM_WIN32_H
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_vulkan_device
uint64_t mln_vulkan_device
Definition
base.h:127
mln_acquired_frame
uint64_t mln_acquired_frame
Definition
base.h:154
mln_status
mln_status
Definition
base.h:41
completion.h
map.h
render_session.h
render_target.h
mln_completion
Definition
completion.h:66
mln_diagnostic
Definition
base.h:84
mln_dxgi_shared_texture_frame
Definition
win32.h:118
mln_dxgi_shared_texture_frame::slot
uint32_t slot
Definition
win32.h:124
mln_dxgi_shared_texture_frame::size
uint32_t size
Definition
win32.h:119
mln_dxgi_shared_texture_frame::width
uint32_t width
Definition
win32.h:120
mln_dxgi_shared_texture_frame::handle
void * handle
Definition
win32.h:128
mln_dxgi_shared_texture_frame::format
uint32_t format
Definition
win32.h:126
mln_dxgi_shared_texture_frame::scale_factor
double scale_factor
Definition
win32.h:122
mln_dxgi_shared_texture_frame::height
uint32_t height
Definition
win32.h:121
mln_dxgi_shared_texture_ring_descriptor
Definition
win32.h:110
mln_dxgi_shared_texture_ring_descriptor::logical_size
mln_logical_size logical_size
Definition
win32.h:112
mln_dxgi_shared_texture_ring_descriptor::texture_count
uint32_t texture_count
Definition
win32.h:114
mln_dxgi_shared_texture_ring_descriptor::size
uint32_t size
Definition
win32.h:111
mln_logical_size
Definition
map.h:196
mln_render_session_attach_options
Definition
render_target.h:125
mln_win32_window_descriptor
Definition
win32.h:22
mln_win32_window_descriptor::size
uint32_t size
Definition
win32.h:23
mln_win32_window_descriptor::logical_size
mln_logical_size logical_size
Definition
win32.h:24
mln_win32_window_descriptor::window
void * window
Definition
win32.h:26
mln_win32_window_replacement
Definition
win32.h:30
mln_win32_window_replacement::logical_size
mln_logical_size logical_size
Definition
win32.h:32
mln_win32_window_replacement::size
uint32_t size
Definition
win32.h:31
mln_win32_window_replacement::window
void * window
Definition
win32.h:34
mln_acquired_frame_get_dxgi_shared_texture
mln_status mln_acquired_frame_get_dxgi_shared_texture(mln_acquired_frame frame, mln_dxgi_shared_texture_frame *out_frame, mln_diagnostic *out_diagnostic)
mln_map_attach_win32_window
mln_status mln_map_attach_win32_window(mln_map map, const mln_win32_window_descriptor *descriptor, mln_vulkan_device device, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_map_attach_dxgi_shared_texture_ring
mln_status mln_map_attach_dxgi_shared_texture_ring(mln_map map, const mln_dxgi_shared_texture_ring_descriptor *descriptor, mln_vulkan_device device, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_render_session_set_win32_window_target
mln_status mln_render_session_set_win32_window_target(mln_render_session session, const mln_win32_window_replacement *replacement, const mln_completion *completion, mln_diagnostic *out_diagnostic)
Generated by
1.18.0