egui/examples/custom_3d_glow
Giantblargg b8048572e8
Add API for raw mouse motion (#4063)
Raw mouse movement is unaccelerated and unclamped by screen boundaries,
and does not relate to any position on the screen.
It is useful in certain situations such as draggable values and 3D
cameras, where screen position does not matter.


https://github.com/emilk/egui/assets/1700581/1400e6a6-0573-41b9-99a1-a9cd305aa1a3

Added `Event::MouseMoved` for integrations to supply raw mouse movement.
Added `Response:drag_motion` to get the raw mouse movement, but will
fall back to delta in case the integration does not supply it.

Nothing should be breaking, but third-party integrations that can send
`Event::MouseMoved` should be updated to do so.

Based on #1614 but updated to the current version, and with better
fallback behaviour.

* Closes #1611
* Supersedes #1614
2024-02-20 18:00:39 +01:00
..
src Add API for raw mouse motion (#4063) 2024-02-20 18:00:39 +01:00
Cargo.toml Put all egui crates as workspace crates (#3976) 2024-02-05 12:59:49 +01:00
README.md Remove references to the removed `custom_3d_three-d` example 2023-05-22 17:04:58 +02:00
screenshot.png Update example screenshots 2023-05-23 13:38:02 +02:00

README.md

This demo shows how to embed 3D rendering using glow in eframe.

This is very advanced usage, and you need to be careful.

If you are content of having egui sit on top of a 3D background, take a look at:

cargo run -p custom_3d_glow