Struct
MaplibreNativeFfiRenderSessionSnapshot
Description [src]
struct MaplibreNativeFfiRenderSessionSnapshot {
MaplibreNativeFfiRenderSessionState state;
MaplibreNativeFfiLogicalExtent extent;
guint64 generation;
guint64 frame_generation;
guint32 acquired_frame_count;
MaplibreNativeFfiError failure_status;
gboolean has_target;
}
The state of a render session at one moment.
See mln_render_session_snapshot in the
C API reference.
Structure members
state:MaplibreNativeFfiRenderSessionStateState.
extent:MaplibreNativeFfiLogicalExtentThe target’s logical size, and the map’s scale factor.
generation:guint64Generation.
frame_generation:guint64Frame_generation.
acquired_frame_count:guint32Acquired_frame_count.
failure_status:MaplibreNativeFfiError0until the session fails. ThenMAPLIBRE_NATIVE_FFI_ERROR_TARGET_LOSTwhen it failed because it lost its target, orMAPLIBRE_NATIVE_FFI_ERROR_NATIVE_ERRORwhen it failed for another reason.has_target:gbooleanWhether the session is attached and has a target to render to. It’s false from when
maplibre_native_ffi_render_session_release_target_async()completes until you give the session a new target.