2023-09-21 18:22:46 +00:00
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Copy, Clone, Debug)]
|
|
|
|
pub struct Vertex {
|
|
|
|
pub position: [f32; 3],
|
|
|
|
pub tex_coords: [f32; 2]
|
|
|
|
}
|
|
|
|
|
2023-09-21 21:27:21 +00:00
|
|
|
#[derive(Clone, Default)]
|
2023-09-21 18:22:46 +00:00
|
|
|
pub struct Mesh {
|
|
|
|
pub vertices: Vec<Vertex>,
|
|
|
|
pub indices: Option<Vec<u16>>,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Model {
|
|
|
|
pub mesh: Mesh,
|
|
|
|
//pub material
|
|
|
|
}
|