diff --git a/examples/custom_plot_manipulation/screenshot.png b/examples/custom_plot_manipulation/screenshot.png index 975898b7210..cc49659227d 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 5fe25c57dbe..040a31ff2db 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 f47e2c589a9..9581b8cf97e 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 450f6eead24..e7423f00369 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 97066fa7909..87d3d53d4c8 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 a6939706e5a..1792f0e649d 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 072810ef80e..121f2ac0c8d 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 f0e2a911480..f1ff645ac27 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 9e7b4fa6c37..280ffe2325d 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 00000000000..5e8680bbcb0 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 f63ecf8e8d2..91e338d31a7 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}