|
Ream v0.1.0-1
C++ graphics library for Linux
|
Example programs live under src/examples/ and are built by default (see the build_examples Meson option).
A minimal Wayland client that creates a CZ::RWLSwapchain, acquires a buffer each frame, draws an animated scene into it using a Skia canvas obtained from a CZ::RPass, and presents it back to the compositor. It works unchanged across the Raster, OpenGL, and Vulkan backends â switch with the CZ_REAM_GAPI environment variable (see âī¸ Environment Variables):
The example demonstrates the core render loop: swapchain creation and resize, buffer-age tracking for damage-aware rendering, wrapping the acquired image in an CZ::RSurface, and presenting.