crumblingstatue / egui-sfml

Egui SFML integration helpers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Egui SFML integration helpers

License:Apache License 2.0


Languages

Language:Rust 100.0%