Module wayland_client::egl [] [src]

The EGL wayland protocol.

This modules handles the creation of EGL surfaces in wayland.

This module depends on he presence of libwayland-egl.so in the system, which should be provided by the graphics driver. If the library is not present, all methods of EGLSurface will panic.

If the EGL support is not mandatory for your use, you can test the presence of the library with the function is_egl_available() before calling the other methods.

Structs

EGLSurface
wl_egl_window

An opaque struct representing a native window for EGL.

Functions

is_egl_available

Returns whether the library libwayland-egl.so has been found and could be loaded.