12 releases
0.2.9 | Jun 3, 2023 |
---|---|
0.2.8 | Jul 1, 2016 |
0.2.7 | Jun 28, 2016 |
0.2.3 | Sep 13, 2015 |
0.1.1 | Jul 9, 2015 |
#511 in Math
57 downloads per month
34KB
1K
SLoC
xmath
Rust port of Microsoft DirectXMath. Documentation
[dependencies]
xmath = "0.2"
- Optional glium support
- Out of the box glium_text support
Glium support
xmath supports glium out of the box, but because of its compilation time
it is disabled by default. To use xmath with glium, you can enable it in
Cargo.toml
.
[dependencies]
xmath = { version = "0.2", features = ["glium-support"] }
let uniforms = uniform! {
matrix: Matrix::orthographic(width as f32/10.0, height as f32/10.0, 0.0, 1.0)
};
target.draw(&unit.vb, &unit.ib, program, uniforms, &draw_parameters);
Dependencies
~0–5MB
~17K SLoC