Skip to content

Commit

Permalink
Update example screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 5, 2024
1 parent d024914 commit b522200
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 3 deletions.
Binary file modified examples/custom_plot_manipulation/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/custom_window_frame/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/hello_world/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/hello_world_simple/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/puffin_profiler/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/save_plot/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion examples/test_inline_glow_paint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion examples/test_viewports/README.md
Original file line number Diff line number Diff line change
@@ -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)
Binary file added examples/test_viewports/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion scripts/generate_example_screenshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit b522200

Please sign in to comment.