[−][src]Struct eq_wld::Primitive
Implementations
impl<'a> Primitive<'a>
[src]
pub fn indices(&self) -> Vec<u32>
[src]
Indices of the positions making up this primitive. These refer to positions on the parent mesh.
pub fn positions(&self) -> Vec<[f32; 3]>
[src]
pub fn normals(&self) -> Vec<[f32; 3]>
[src]
pub fn texture_coordinates(&self) -> Vec<[f32; 2]>
[src]
pub fn material(&self) -> Material<'_>
[src]
The material that this primitive uses.
pub fn index(&self) -> usize
[src]
The index of this primitive in its parent mesh.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Primitive<'a>
[src]
impl<'a> Send for Primitive<'a>
[src]
impl<'a> Sync for Primitive<'a>
[src]
impl<'a> Unpin for Primitive<'a>
[src]
impl<'a> UnwindSafe for Primitive<'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>,