8 releases (breaking)

0.7.0 Oct 24, 2024
0.6.0 Oct 14, 2024
0.5.0 Sep 19, 2024
0.4.0 Feb 9, 2023
0.1.1 Aug 20, 2022

#372 in GUI

Download history 9/week @ 2024-07-29 97/week @ 2024-09-16 25/week @ 2024-09-23 9/week @ 2024-09-30 5/week @ 2024-10-07 224/week @ 2024-10-14 136/week @ 2024-10-21 47/week @ 2024-10-28 53/week @ 2024-11-04 1/week @ 2024-11-11

244 downloads per month
Used in 2 crates

MIT/Apache

25KB
563 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

~29MB
~161K SLoC