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

用法

來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。

// 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 · 專案 tests/examples/wayland-egl

建置

A 型套件:上游壓縮檔自帶 mcpp.toml(在 */mcpp/egl/mcpp.toml)。本次建置沒有抓取它的內容 —— 執行一次索引的重新整理動作就能拉進來。

版本

版本平台 鏡像sha256
1.26.0 最新 Linux GLOBAL CN 9bce2cc00c61…