Method

MaplibreNativeFfiRenderSessionset_open_gl_surface_target_async

Declaration [src]

void
maplibre_native_ffi_render_session_set_open_gl_surface_target_async (
  MaplibreNativeFfiRenderSession* self,
  MaplibreNativeFfiOpenGlSurfaceReplacement* replacement,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Replaces the OpenGL surface that the session presents to.

Use it to give the session a surface again after maplibre_native_ffi_render_session_release_target_async(), to move it to another surface, or to resize it. Once the replacement completes, the session no longer uses the old surface.

See mln_render_session_set_open_gl_surface_target in the C API reference.

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

Parameters

replacement

Type: MaplibreNativeFfiOpenGlSurfaceReplacement

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.