Method

MaplibreNativeFfiRenderSessionset_open_gl_borrowed_texture_target_async

Declaration [src]

void
maplibre_native_ffi_render_session_set_open_gl_borrowed_texture_target_async (
  MaplibreNativeFfiRenderSession* self,
  MaplibreNativeFfiOpenGlBorrowedTextureReplacement* replacement,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Replaces the OpenGL textures that a borrowed ring renders into.

Use it to resize the ring, or to give the session textures again after maplibre_native_ffi_render_session_release_target_async(). Release every acquired frame first. Once the replacement completes, the session no longer uses the old textures.

See mln_render_session_set_open_gl_borrowed_texture_target in the C API reference.

This method completes asynchronously. Use maplibre_native_ffi_render_session_set_open_gl_borrowed_texture_target_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

replacement

Type: MaplibreNativeFfiOpenGlBorrowedTextureReplacement

No description available.

The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

The callback to call when the call finishes.

The argument can be NULL.
user_data

Type: gpointer

The data to pass to callback.

The argument can be NULL.
The data is owned by the caller of the method.