egui_sdl3_platform is a render-backend independent egui backend for sdl3.
You can include it like so:
[dependencies]
egui_sdl3_platform = "0.1.0"
egui = "0.33.0"
sdl3 = "0.16.0"By default, the newest egui and sdl3 versions are used as dependencies.
If this is inconvenient to you, e.g because another dependency of your project hasn't caught up
with the latest egui or sdl3 version, then you can opt-in to select dependency versions manually:
# Select an explicit `egui` version, but use the newest `sdl3` version:
egui_sdl3_platform = { default-features = false, features = ["egui-0.32", "sdl3-newest"] }Select one feature out of both lines each:
"egui-0.31","egui-0.32","egui-0.33","egui-newest""sdl3-0.15","sdl3-0.16","sdl3-newest"
Additionally, you can opt-in to the feature "tracing" to report any runtime-warning
using tracing.
An example showing how to use this backend together with wgpu and egui_wgpu_backend is included.
It can be found here.
There is also an additional example using egui_glow to enable OpenGL.