#[repr(C)] #[derive(Copy, Clone, Debug)] pub struct Vertex { pub position: glam::Vec3, pub tex_coords: glam::Vec2 } impl Vertex { pub fn new(position: glam::Vec3, tex_coords: glam::Vec2) -> Self { Self { position, tex_coords, } } } #[derive(Clone, Default)] pub struct Mesh { pub vertices: Vec, pub indices: Option>, } pub struct Model { pub meshes: Vec, //pub material } impl Model { pub fn new(meshes: Vec) -> Self { Self { meshes, } } }