Skip to content

simnalamburt/xmath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xmath crates-i

Rust port of Microsoft DirectXMath. Documentation

[dependencies]
xmath = "0.2"

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);

BSD 2-Clause

About

📐 Rust port of Microsoft DirectXMath

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages