pub struct WmoTriangle {
pub vertices: [Vec3; 3],
pub normals: Option<[Vec3; 3]>,
pub tex_coords: Option<[TexCoord; 3]>,
pub colors: Option<[Color; 3]>,
pub material_id: u16,
}Expand description
A single triangle from a WMO group
Fields§
§vertices: [Vec3; 3]Vertex positions
normals: Option<[Vec3; 3]>Vertex normals (if available)
tex_coords: Option<[TexCoord; 3]>Texture coordinates (if available)
colors: Option<[Color; 3]>Vertex colors (if available)
material_id: u16Material ID
Trait Implementations§
Source§impl Clone for WmoTriangle
impl Clone for WmoTriangle
Source§fn clone(&self) -> WmoTriangle
fn clone(&self) -> WmoTriangle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WmoTriangle
impl RefUnwindSafe for WmoTriangle
impl Send for WmoTriangle
impl Sync for WmoTriangle
impl Unpin for WmoTriangle
impl UnwindSafe for WmoTriangle
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