5 releases (3 breaking)

0.4.0 Feb 9, 2023
0.3.0 Jan 21, 2023
0.2.0 Nov 1, 2022
0.1.1 Aug 20, 2022
0.1.0 Aug 20, 2022

#8 in #egui-integration


Used in 2 crates

MIT/Apache

19KB
425 lines

egui-sfml

Crates.io docs.rs

SFML integration for egui.

This library allows using egui for rust-sfml projects. It's a very easy way to add a functional gui to your rust-sfml game or application!

All you need to do is:

  • Create an SfEgui
  • Feed it SFML events using add_event
  • Do an egui frame with do_frame
  • Draw the ui with draw

See examples/hello.rs for a simple demo.


lib.rs:

egui SFML integration helpers

Contains various types and functions that helps with integrating egui with SFML.

Dependencies

~6–12MB
~110K SLoC