You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to get Egui's Screenshot feature to work.
Test program:
git clone https://github.com/John-Nagle/ui-mock.git
cd ui-mock
git checkout screenshot
cargo build --examples
cd target/release/examples
./ui-mock
Select one of the dummy metaverse buttons, go through the dummy login (username and password do nothing), and get the 3D cube on screen. Use the Developer->Screenshot menu.
so screenshot support for this stack seems to be present.
I'm not too sure about the path by which the screenshot result is returned. Searching through the list of Egui events to find it seems like a test-only approach. Maybe I'm searching that list at the wrong point in the frame cycle.
Whatever normally processes and consumes those events probably ought to make a callback to the user.
Big question: does this capture the whole window, or just the Egui overlay?
Trying to get Egui's Screenshot feature to work.
Test program:
Select one of the dummy metaverse buttons, go through the dummy login (username and password do nothing), and get the 3D cube on screen. Use the Developer->Screenshot menu.
This executes
And "Screenshot" is printed.
On the event processing side, the code to look for a Screenshot event, in "screenshot.rs", is
This prints lots of other events, but no Screenshot event.
This code is modeled after the example at https://github.com/emilk/egui/blob/master/examples/screenshot/src/main.rs
What am I doing wrong?
Originally posted by @John-Nagle in #5740
The text was updated successfully, but these errors were encountered: