#egui #sdl2 #back-end #included #how #wgpu #together

egui_sdl2_platform

A render-backend independant egui backend for sdl2

2 unstable releases

0.2.0 Dec 20, 2022
0.1.0 Sep 5, 2022

#923 in Graphics APIs

39 downloads per month

MIT license

17KB
300 lines

Crates.io Documentation

A Sdl2 + Egui Backend

An egui backend for sdl2 unbound to any renderer-backend.

You can include it like so:

[dependencies]
egui_sdl2_platform = "0.1.0"
sdl2 = "0.35"

Examples

I have included an example of how to use this backend together with wgpu using egui_wgpu_backend. It can be found here.

Alternatives

If you are using sdl2 with opengl I would recommend egui_sdl2_gl which has a backend for opengl included.


lib.rs:

An graphics-backend independant egui backend for sdl2

Dependencies

~25MB
~416K SLoC