| Crates.io | egui_sdl2_platform |
| lib.rs | egui_sdl2_platform |
| version | 0.4.0 |
| created_at | 2022-09-05 21:28:45.299661+00 |
| updated_at | 2025-09-07 11:31:58.362287+00 |
| description | A render-backend independant egui backend for sdl2 |
| homepage | |
| repository | |
| max_upload_size | |
| id | 659077 |
| size | 41,188 |
An egui backend for sdl2 unbound to any renderer-backend.
You can include it like so:
[dependencies]
egui_sdl2_platform = "0.3.0"
SDL2 is re-exported with various feature flags that can be enabled with:
I have included an example of how to use this backend together with wgpu using egui_wgpu_backend. It can be found here.
There is also an additional example using egui_glow to enable openGL.
If you are using sdl2 with opengl it is worth looking at egui_sdl2_gl also.