mcpp index

freedesktop.wayland-egl

#include

libwayland-egl 1.26.0 — wl_egl_window, the bridge from a wl_surface to an EGL window surface

#include <wayland-egl.h>
mcpp add freedesktop.wayland-egl@1.26.0

Usage

From this repository's own test project — built and run by CI, not written for the website.

// freedesktop.wayland-egl — the step that used to be missing.
//
// WHAT THIS CAN AND CANNOT ASSERT, decided by what the library actually is.
//
// libwayland-egl is 118 lines and holds no connection: `wl_egl_window_create`
// allocates a struct, stores the `wl_surface *` it was handed, and records a
// size. It calls no client function and talks to no compositor — an EGL
// implementation later reads and writes the struct through
// `wayland-egl-backend.h`.
//
// So a CI runner with no compositor can exercise the whole library honestly.
// What it cannot do is `eglCreateWindowSurface`, which needs a real
// `wl_display` from a real compositor — asserting that here would only assert
// that the runner has a desktop session.
//
// THE BACKEND HEADER IS INCLUDED ON PURPOSE. `wayland-egl-core.h` exposes four
// functions and an opaque type, so through it alone the only observable is
// "create returned non-null". `wayland-egl-backend.h` is the contract this
// library has with an EGL implementation — Mesa includes it — and reading the
// struct through it is what lets the test check that create and resize wrote
// what they claim.
//
// …

tests/examples/wayland-egl/tests/wayland-egl.cpp · project tests/examples/wayland-egl

Build

Form A package: the upstream archive ships its own mcpp.toml at */mcpp/egl/mcpp.toml. Its contents have not been fetched into this build — run the index's refresh action to pull them in.

Versions

VersionPlatforms Mirrorssha256
1.26.0 latest Linux GLOBAL CN 9bce2cc00c61…