6 releases (breaking)

0.6.0 Aug 24, 2021
0.5.0 Jun 28, 2021
0.4.0 May 10, 2021
0.3.0 Apr 12, 2021
0.1.0 Mar 13, 2021

#4 in #portable

Download history 147/week @ 2021-05-30 181/week @ 2021-06-06 86/week @ 2021-06-13 22/week @ 2021-06-20 98/week @ 2021-06-27 206/week @ 2021-07-04 34/week @ 2021-07-11 107/week @ 2021-07-18 237/week @ 2021-07-25 99/week @ 2021-08-01 83/week @ 2021-08-08 98/week @ 2021-08-15 188/week @ 2021-08-22 34/week @ 2021-08-29 49/week @ 2021-09-05 87/week @ 2021-09-12

503 downloads per month
Used in 4 crates (via egui-macroquad)

MIT/Apache

29KB
578 lines

egui bindings for miniquad

Latest version Documentation Build Status MIT Apache

native

On Linux you first must run apt install libx11-dev libxi-dev libgl1-mesa-dev (miniquad dependencies).

cargo run --release --example demo

Compiling for the web

You can compile your app to WASM and publish it as a web page. For this you need to set up some tools. There are a few simple scripts that help you with this:

./setup_web.sh
./build_web.sh
./start_server.sh
open http://127.0.0.1:8080/
  • setup_web.sh installs the tools required to build for web
  • build_web.sh compiles your code to wasm and puts it in the docs/ folder (see below)
  • start_server.sh starts a local HTTP server so you can test before you publish
  • Open http://127.0.0.1:8080/ in a web browser to view

The finished web app is found in the docs/ folder (this is so that you can easily share it with GitHub Pages).

You can try the demo in this repository by visiting https://not-fl3.github.io/egui-miniquad/.

Dependencies

~2.4–4.5MB
~95K SLoC