MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_render_session_snapshot Struct Reference

#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

Detailed Description

The state of a render session at one moment.

Field Documentation

◆ acquired_frame_count

uint32_t mln_render_session_snapshot::acquired_frame_count

◆ extent

mln_logical_extent mln_render_session_snapshot::extent

The target's logical size, and the map's scale factor.

◆ failure_status

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.

◆ frame_generation

uint64_t mln_render_session_snapshot::frame_generation

◆ generation

uint64_t mln_render_session_snapshot::generation

◆ has_target

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.

◆ size

uint32_t mln_render_session_snapshot::size

◆ state

mln_render_session_state mln_render_session_snapshot::state

The documentation for this struct was generated from the following file: