Update example screenshots
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 296 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.3 KiB |
|
|
@ -10,7 +10,10 @@ publish = false
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[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 = [
|
env_logger = { version = "0.10", default-features = false, features = [
|
||||||
"auto-color",
|
"auto-color",
|
||||||
"humantime",
|
"humantime",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
This is a test of the viewports feature of eframe and egui, where we show off using multiple windows.
|
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).
|
||||||
|
|
||||||
|

|
||||||
|
|
|
||||||
|
After Width: | Height: | Size: 6.3 KiB |
|
|
@ -7,7 +7,12 @@ cd "$script_path/.."
|
||||||
|
|
||||||
cd examples
|
cd examples
|
||||||
for EXAMPLE_NAME in $(ls -1d */ | sed 's/\/$//'); do
|
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 ""
|
||||||
echo "Running ${EXAMPLE_NAME}…"
|
echo "Running ${EXAMPLE_NAME}…"
|
||||||
EFRAME_SCREENSHOT_TO="temp.png" cargo run -p ${EXAMPLE_NAME}
|
EFRAME_SCREENSHOT_TO="temp.png" cargo run -p ${EXAMPLE_NAME}
|
||||||
|
|
|
||||||