[−][src]Struct eq_wld::Mesh
Implementations
impl<'a> Mesh<'a>
[src]
pub fn name(&self) -> Option<&str>
[src]
The name of the mesh
pub fn center(&self) -> (f32, f32, f32)
[src]
pub fn positions(&self) -> Vec<[f32; 3]>
[src]
The positions of the vertices that make up this mesh.
pub fn normals(&self) -> Vec<[f32; 3]>
[src]
The vertex normals of the mesh.
pub fn texture_coordinates(&self) -> Vec<[f32; 2]>
[src]
The coordinates used to map textures to this mesh.
pub fn indices(&self) -> Vec<u32>
[src]
Indices into the positions vector of this mesh. Expects that the mesh will be drawn as a triangle list.
pub fn materials(&self) -> Vec<Material<'_>>
[src]
A list of materials used by this mesh.
pub fn primitives(&self) -> Vec<Primitive<'_>>
[src]
Primitives belonging to this mesh.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Mesh<'a>
[src]
impl<'a> Send for Mesh<'a>
[src]
impl<'a> Sync for Mesh<'a>
[src]
impl<'a> Unpin for Mesh<'a>
[src]
impl<'a> UnwindSafe for Mesh<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,