From bf3fe1bf1ecf39905fc18d9079da6a102622b66d Mon Sep 17 00:00:00 2001 From: CheerfulPianissimo Date: Sun, 25 Aug 2024 20:56:28 +0530 Subject: [PATCH] [doc] update waymirror-egl Readme --- libwayshot/examples/waymirror-egl/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libwayshot/examples/waymirror-egl/README.md b/libwayshot/examples/waymirror-egl/README.md index ad3b0d01..69d4fe45 100644 --- a/libwayshot/examples/waymirror-egl/README.md +++ b/libwayshot/examples/waymirror-egl/README.md @@ -1,7 +1,8 @@ -# wayland-egl-ctx +# waymirror-egl +Example code for using the libwayshot DMA-BUF GL screencapture pipeline. -Example wayland xdg window driven using egl +This example sets up an EGL+OpenGL context, sets up libwayshot and renders the main display onto a rectangle after converting the screencapture into a texture. -# TODO +Adapted from https://github.com/Shinyzenith/wayland-egl-ctx, all credits to @Shinyzenith -- [x] Get GL calls to work +Run using `cargo run` inside this directory.