Crates.io | egui_overlay |
lib.rs | egui_overlay |
version | 0.9.0 |
source | src |
created_at | 2022-08-26 09:04:03.837498 |
updated_at | 2024-11-03 23:41:25.414689 |
description | Egui integration to easily create Desktop Overlays |
homepage | |
repository | https://github.com/coderedart/egui_overlay |
max_upload_size | |
id | 652639 |
size | 44,344 |
In this context, Overlay simply means a gui application where
Here, we will let input passthrough when egui doesn't need input.
The egui_overlay
crate just combines the functionality from egui_window_glfw_passthrough
for windowing functionality.
For rendering, we use egui_render_three_d
, as three-d
will allow you to draw a bunch of things easily.
But, as apple doesn't support opengl, we use egui_render_wgpu
on macos.
For advanced usecases, i recommend directly using egui_window_glfw_passthrough
crate directly with either wgpu or three-d or glow backend crates.
As you can see in lib.rs
, its barely 150 lines of code to set up. It will allow you more control over event loop, as well as drawing.
Look at the basic
example for a rough idea of how to use this crate for normal usecase.
Look at the triangle
example (only for linux/windows users, as i use three-d), to see how you can draw custom stuff too.
use
cargo run -p basic
to run the example.
https://github.com/coderedart/egui_overlay/assets/24411704/9f7bab7b-26ec-47d1-b51e-74006dfa7b0d