Update example screenshots

This commit is contained in:
Emil Ernerfeldt 2024-02-05 13:01:10 +01:00
parent d02491425c
commit b522200804
11 changed files with 13 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -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",

View File

@ -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 not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -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}