Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crumblingstatue/egui-sfml
Egui SFML integration helpers
https://github.com/crumblingstatue/egui-sfml
Last synced: about 2 months ago
JSON representation
Egui SFML integration helpers
- Host: GitHub
- URL: https://github.com/crumblingstatue/egui-sfml
- Owner: crumblingstatue
- License: apache-2.0
- Created: 2021-03-13T13:40:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T17:33:03.000Z (2 months ago)
- Last Synced: 2024-10-24T21:46:15.438Z (2 months ago)
- Language: Rust
- Size: 67.4 KB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# egui-sfml
[![Crates.io](https://img.shields.io/crates/v/egui-sfml)](https://crates.io/crates/egui-sfml)
[![docs.rs](https://img.shields.io/docsrs/egui-sfml?style=plastic)](https://docs.rs/egui-sfml)[SFML](https://github.com/jeremyletang/rust-sfml) integration for [egui](https://github.com/emilk/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.