diff --git a/examples/custom_plot_manipulation/screenshot.png b/examples/custom_plot_manipulation/screenshot.png index 975898b7..cc496592 100644 Binary files a/examples/custom_plot_manipulation/screenshot.png and b/examples/custom_plot_manipulation/screenshot.png differ diff --git a/examples/custom_window_frame/screenshot.png b/examples/custom_window_frame/screenshot.png index 5fe25c57..040a31ff 100644 Binary files a/examples/custom_window_frame/screenshot.png and b/examples/custom_window_frame/screenshot.png differ diff --git a/examples/hello_world/screenshot.png b/examples/hello_world/screenshot.png index f47e2c58..9581b8cf 100644 Binary files a/examples/hello_world/screenshot.png and b/examples/hello_world/screenshot.png differ diff --git a/examples/hello_world_simple/screenshot.png b/examples/hello_world_simple/screenshot.png index 450f6eea..e7423f00 100644 Binary files a/examples/hello_world_simple/screenshot.png and b/examples/hello_world_simple/screenshot.png differ diff --git a/examples/images/screenshot.png b/examples/images/screenshot.png index 97066fa7..87d3d53d 100644 Binary files a/examples/images/screenshot.png and b/examples/images/screenshot.png differ diff --git a/examples/puffin_profiler/screenshot.png b/examples/puffin_profiler/screenshot.png index a6939706..1792f0e6 100644 Binary files a/examples/puffin_profiler/screenshot.png and b/examples/puffin_profiler/screenshot.png differ diff --git a/examples/save_plot/screenshot.png b/examples/save_plot/screenshot.png index 072810ef..121f2ac0 100644 Binary files a/examples/save_plot/screenshot.png and b/examples/save_plot/screenshot.png differ diff --git a/examples/test_inline_glow_paint/Cargo.toml b/examples/test_inline_glow_paint/Cargo.toml index f0e2a911..f1ff645a 100644 --- a/examples/test_inline_glow_paint/Cargo.toml +++ b/examples/test_inline_glow_paint/Cargo.toml @@ -10,7 +10,10 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -eframe = { workspace = true, features = ["default"] } +eframe = { workspace = true, features = [ + "default", + "__screenshot", # __screenshot is so we can dump a screenshot using EFRAME_SCREENSHOT_TO +] } env_logger = { version = "0.10", default-features = false, features = [ "auto-color", "humantime", diff --git a/examples/test_viewports/README.md b/examples/test_viewports/README.md index 9e7b4fa6..280ffe23 100644 --- a/examples/test_viewports/README.md +++ b/examples/test_viewports/README.md @@ -1,3 +1,5 @@ This is a test of the viewports feature of eframe and egui, where we show off using multiple windows. -For a simple example, see [../multiple_viewports]. +For a simple example, see [`multiple_viewports`](../multiple_viewports). + +![](screenshot.png) diff --git a/examples/test_viewports/screenshot.png b/examples/test_viewports/screenshot.png new file mode 100644 index 00000000..5e8680bb Binary files /dev/null and b/examples/test_viewports/screenshot.png differ diff --git a/scripts/generate_example_screenshots.sh b/scripts/generate_example_screenshots.sh index f63ecf8e..91e338d3 100755 --- a/scripts/generate_example_screenshots.sh +++ b/scripts/generate_example_screenshots.sh @@ -7,7 +7,12 @@ cd "$script_path/.." cd examples for EXAMPLE_NAME in $(ls -1d */ | sed 's/\/$//'); do - if [ ${EXAMPLE_NAME} != "hello_world_par" ] && [ ${EXAMPLE_NAME} != "screenshot" ] && [ ${EXAMPLE_NAME} != "multiple_viewports" ]; then + if [ ${EXAMPLE_NAME} != "hello_world_par" ] && # screenshot not implemented for wgpu backend + [ ${EXAMPLE_NAME} != "multiple_viewports" ] && + [ ${EXAMPLE_NAME} != "screenshot" ] && + [ ${EXAMPLE_NAME} != "puffin_viewer" ] && + [ ${EXAMPLE_NAME} != "serial_windows" ]; + then echo "" echo "Running ${EXAMPLE_NAME}…" EFRAME_SCREENSHOT_TO="temp.png" cargo run -p ${EXAMPLE_NAME}