Miniquad is a manifestation of a dream in a world where we do not need a deep dependencies tree and thousands lines of code to draw things with a computer.
Miniquad aims to provide a graphics abstraction that works the same way on any platform with a GPU, being as light weight as possible while covering as many machines as possible.
- Windows, OpenGL 3, OpenGL 2.2;
- Linux, OpenGL 2.2, OpenGL 3, GLES 2, GLES 3;
- WASM, WebGL 2 - tested on Firefox, Chrome;
examples/quad.rs: web demo
examples/offscreen.rs: web demo
PonasKovas/miniquad-mandelbrot: web demo
cargo run --example quad
On NixOS Linux you can use shell.nix
to start a development
environment where Miniquad can be built and run.
# both MSVC and GNU target is supported:
rustup target add x86_64-pc-windows-msvc
# or
rustup target add x86_64-pc-windows-gnu
cargo run --example quad
... uses wasm-bindgen, should work out of the box in such a context
# windows target from linux host:
# this is how windows builds are tested from linux machine:
rustup target add x86_64-pc-windows-gnu
cargo run --example quad --target x86_64-pc-windows-gnu