Macro nannou::glam::const_mat4 [−][src]
macro_rules! const_mat4 {
($col0 : expr, $col1 : expr, $col2 : expr, $col3 : expr) => { ... };
($fx16 : expr) => { ... };
}
Expand description
Creates a Mat4
from four column vectors that can be used to initialize a constant value.
use glam::{const_mat4, Mat4};
const ZERO: Mat4 = const_mat4!([0.0; 16]);
const IDENTITY: Mat4 = const_mat4!(
[1.0, 0.0, 0.0, 0.0],
[0.0, 1.0, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.0],
[0.0, 0.0, 0.0, 1.0]
);