wayland_onscreen_set_foreign_surface


Description:

public void wayland_onscreen_set_foreign_surface (Onscreen onscreen, void* surface)

Allows you to explicitly notify Cogl of an existing Wayland surface to use, which prevents Cogl from allocating a surface and shell surface for the onscreen.

An allocated surface will not be destroyed when the onscreen is freed.

This function must be called before onscreen is allocated.

Parameters:

onscreen

An unallocated framebuffer. surface A Wayland surface to associate with the onscreen.


Namespace: Cogl
Package: doc