Method
MaplibreNativeFfiRenderSessionread_texture_async
Declaration [src]
void
maplibre_native_ffi_render_session_read_texture_async (
MaplibreNativeFfiRenderSession* self,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Reads the pixels of the last frame that the session rendered.
See mln_render_session_read_texture in the
C API reference.
It fails with these errors:
MAPLIBRE_NATIVE_FFI_ERROR_UNSUPPORTEDwhen the session’s capabilities lackMAPLIBRE_NATIVE_FFI_RENDER_SESSION_CAPABILITY_READBACK.MAPLIBRE_NATIVE_FFI_ERROR_INVALID_STATEwhen the session hasn’t rendered a frame since it attached, resized, or changed its target.
This method completes asynchronously. Use maplibre_native_ffi_render_session_read_texture_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
callback-
Type:
GAsyncReadyCallbackThe callback to call when the call finishes.
The argument can be NULL. user_data-
Type:
gpointerThe data to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.