|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <render_session.h>
Data Fields | |
| uint32_t | size |
| mln_render_session_state | state |
| mln_logical_extent | extent |
| uint64_t | generation |
| uint64_t | frame_generation |
| uint32_t | acquired_frame_count |
| mln_status | failure_status |
| bool | has_target |
The state of a render session at one moment.
| uint32_t mln_render_session_snapshot::acquired_frame_count |
| mln_logical_extent mln_render_session_snapshot::extent |
The target's logical size, and the map's scale factor.
| mln_status mln_render_session_snapshot::failure_status |
MLN_STATUS_OK until the session fails. Then MLN_STATUS_TARGET_LOST when it failed because it lost its target, or MLN_STATUS_NATIVE_ERROR when it failed for another reason.
| uint64_t mln_render_session_snapshot::frame_generation |
| uint64_t mln_render_session_snapshot::generation |
| bool mln_render_session_snapshot::has_target |
Whether the session is attached and has a target to render to. It's false from when mln_render_session_release_target() completes until you give the session a new target.
| uint32_t mln_render_session_snapshot::size |
| mln_render_session_state mln_render_session_snapshot::state |