1 2 3 4 5 6 7 8 9 10 11 12 13 14
use glam::Mat4; use crate::mesh3d::Mesh3D; /// A single 3D draw call instance pub struct Draw3D { pub mesh: Mesh3D, pub model: Mat4, } impl Draw3D { pub fn new(mesh: Mesh3D, model: Mat4) -> Self { Self { mesh, model } } }