9 releases (breaking)

0.8.0 Dec 17, 2024
0.7.0 Oct 24, 2024
0.6.0 Oct 14, 2024
0.5.0 Sep 19, 2024
0.1.1 Aug 20, 2022

#454 in GUI

Download history 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 11/week @ 2024-11-18 16/week @ 2024-11-25 1/week @ 2024-12-02 24/week @ 2024-12-09 137/week @ 2024-12-16 13/week @ 2024-12-30 14/week @ 2025-01-06

166 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
~162K SLoC