2023-05-15 03:18:41 +00:00
|
|
|
/// Re-export of glam library
|
|
|
|
pub use glam::*;
|
|
|
|
|
|
|
|
pub mod angle;
|
2023-05-15 03:21:47 +00:00
|
|
|
pub use angle::*;
|
|
|
|
|
2024-09-28 01:03:57 +00:00
|
|
|
mod area;
|
|
|
|
pub use area::*;
|
|
|
|
|
2023-05-15 03:21:47 +00:00
|
|
|
pub mod transform;
|
2023-05-15 05:02:45 +00:00
|
|
|
pub use transform::*;
|
|
|
|
|
|
|
|
/// A matrix used to convert an OpenGL matrix to a matrix compatible with Wgpu
|
|
|
|
#[rustfmt::skip]
|
|
|
|
pub const OPENGL_TO_WGPU_MATRIX: glam::Mat4 = glam::Mat4::from_cols_array(&[
|
|
|
|
1.0, 0.0, 0.0, 0.0,
|
|
|
|
0.0, 1.0, 0.0, 0.0,
|
|
|
|
0.0, 0.0, 0.5, 0.0,
|
|
|
|
0.0, 0.0, 0.5, 1.0,
|
|
|
|
]);
|