Miniquad is safe and cross-platform rendering library focused on portability and low-end platforms support
API is highly inspired by sokol-gfx (sokol overview, 2019 update). Implementation influenced by crayon.
For context management and input on Windows/Linux(and potentially mobiles) "sokol-app" was used. And no external dependencies for WASM.
For higher level API take a look on:
good-web-game: implementation of some ggez subset on top of miniquad, made as compatibility layer to run ggez games on wasm
macroquad: raylib-like library on top of miniquad. 100loc arkanoid with macroquad
examples/quad.rs: web
examples/offscreen.rs: web
Worth to mention zemeroth port and astroblasto, built with miniquad-powered good-web-game
```bash
rustup target add x86_64-pc-windows-gnu
cargo run --example quad --target x8664-unknown-linux-gnu cargo run --example quad --target x8664-apple-darwin cargo run --example quad --target x86_64-pc-windows-gnu
apt install libx11-dev libxi-dev libgl1-mesa-dev ```
bash
rustup target add wasm32-unknown-unknown
cargo build --example quad --target wasm32-unknown-unknown
And then use the following .html to load .wasm:
index.html
```html