gl-matrix
A Rust implementation of glMatrix
gl_matrix provides utilities or all glMatrix functions in Rust.
Quick Start
Getting started should be easy if you are already familiar with glMatrix and Rust. All functions have been re-named to be idiomatic Rust.
use *;
use ;
let canvas_w = 800_f32;
let canvas_h = 600_f32;
let mut world_matrix: Mat4 = ;
let mut view_matrix: Mat4 = ;
let mut proj_matrix: Mat4 = ;
let eye = from_values;
let center = from_values;
let up = from_values;
identity;
look_at;
perspective;
Features
- No std
- Compiles to wasm
- Familar syntax
Future work
- Add support for f64 (Currently only f32)
- Add support for forEach
Examples
Usage
Add this to your Cargo.toml
:
[]
= 0.0
Contributing
See CONTRIBUTING.md
License
gl-matrix is under the terms of the MIT license.