#egui #sfml

egui-sfml

egui integration for rust-sfml

4 releases (2 breaking)

Uses new Rust 2021

new 0.3.0 Jan 21, 2023
0.2.0 Nov 1, 2022
0.1.1 Aug 20, 2022
0.1.0 Aug 20, 2022
Download history 17/week @ 2022-10-07 16/week @ 2022-10-14 12/week @ 2022-10-21 41/week @ 2022-10-28 30/week @ 2022-11-04 29/week @ 2022-11-11 19/week @ 2022-11-18 10/week @ 2022-11-25 14/week @ 2022-12-02 26/week @ 2022-12-09 9/week @ 2022-12-16 23/week @ 2022-12-23 10/week @ 2022-12-30 11/week @ 2023-01-06 13/week @ 2023-01-13 52/week @ 2023-01-20

95 downloads per month
Used in 2 crates

MIT/Apache

18KB
423 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

~5–9MB
~148K SLoC