pub struct WmoMesh {
pub positions: Vec<[f32; 3]>,
pub normals: Vec<[f32; 3]>,
pub tex_coords: Vec<[f32; 2]>,
pub colors: Vec<[u8; 4]>,
pub indices: Vec<u32>,
pub submeshes: Vec<WmoSubmesh>,
}Expand description
A simple structure to export mesh data in a format suitable for 3D rendering
Fields§
§positions: Vec<[f32; 3]>Vertex positions
normals: Vec<[f32; 3]>Vertex normals
tex_coords: Vec<[f32; 2]>Vertex texture coordinates
colors: Vec<[u8; 4]>Vertex colors
indices: Vec<u32>Indices (triangles)
submeshes: Vec<WmoSubmesh>Submeshes grouped by material
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WmoMesh
impl RefUnwindSafe for WmoMesh
impl Send for WmoMesh
impl Sync for WmoMesh
impl Unpin for WmoMesh
impl UnwindSafe for WmoMesh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more