egui/crates/egui_demo_lib
lucasmerlin 6c1d695fc6
Add screenshot support for eframe web (#5438)
This implements web support for taking screenshots in an eframe app (and
adds a nice demo).
It also updates the native screenshot implementation to work with the
wgpu gl backend.

The wgpu implementation is quite different than the native one because
we can't block to wait for the screenshot result, so instead I use a
channel to pass the result to a future frame asynchronously.

* Closes <https://github.com/emilk/egui/issues/5425>
* [x] I have followed the instructions in the PR template


https://github.com/user-attachments/assets/67cad40b-0384-431d-96a3-075cc3cb98fb
2024-12-12 19:17:42 +01:00
..
benches Add `Context::request_discard` (#5059) 2024-09-13 14:20:51 +02:00
data Move all existing .png images to git LGS (#5320) 2024-10-29 10:04:07 +01:00
src Add screenshot support for eframe web (#5438) 2024-12-12 19:17:42 +01:00
tests/snapshots Add screenshot support for eframe web (#5438) 2024-12-12 19:17:42 +01:00
Cargo.toml Add egui testing library (#5166) 2024-10-22 12:39:00 +02:00
README.md Move all crates into a `crates` directory (#1940) 2022-08-20 10:41:49 +02:00

README.md

egui demo library

Latest version Documentation unsafe forbidden MIT Apache

This crate contains example code for egui.

The demo library is a separate crate for three reasons: