Skip to content

A render-backend independant egui backend for sdl2

License

Notifications You must be signed in to change notification settings

Trildar/egui_sdl2_platform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.2.0"

SDL2 is re-exported with various feature flags that can be enabled with:

  • sdl2_unsafe_textures
  • sdl2_gfx
  • sdl2_mixer
  • sdl2_image
  • sdl2_ttf
  • sdl2_use-bindgen
  • sdl2_use-pkgconfig
  • sdl2_use-vcpkg
  • sdl2_use-mac_framework
  • sdl2_bundled
  • sdl2_static-link

Examples

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.

Alternatives

If you are using sdl2 with opengl it is worth looking at egui_sdl2_gl also.

About

A render-backend independant egui backend for sdl2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%