[][src]Struct gltf::mesh::Reader

pub struct Reader<'a, 's, F> where
    F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>, 
{ /* fields omitted */ }

Mesh primitive reader.

Methods

impl<'a, 's, F> Reader<'a, 's, F> where
    F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>, 
[src]

pub fn read_positions(&self) -> Option<ReadPositions<'s>>[src]

Visits the vertex positions of a primitive.

pub fn read_normals(&self) -> Option<ReadNormals<'s>>[src]

Visits the vertex normals of a primitive.

pub fn read_tangents(&self) -> Option<ReadTangents<'s>>[src]

Visits the vertex tangents of a primitive.

pub fn read_colors(&self, set: u32) -> Option<ReadColors<'s>>[src]

Visits the vertex colors of a primitive.

pub fn read_indices(&self) -> Option<ReadIndices<'s>>[src]

Visits the vertex draw sequence of a primitive.

pub fn read_joints(&self, set: u32) -> Option<ReadJoints<'s>>[src]

Visits the joint indices of the primitive.

pub fn read_tex_coords(&self, set: u32) -> Option<ReadTexCoords<'s>>[src]

Visits the vertex texture co-ordinates of a primitive.

pub fn read_weights(&self, set: u32) -> Option<ReadWeights<'s>>[src]

Visits the joint weights of the primitive.

Important traits for ReadMorphTargets<'a, 's, F>
pub fn read_morph_targets(&self) -> ReadMorphTargets<'a, 's, F>[src]

Visits the morph targets of the primitive.

Trait Implementations

impl<'a, 's, F: Clone> Clone for Reader<'a, 's, F> where
    F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>, 
[src]

impl<'a, 's, F: Debug> Debug for Reader<'a, 's, F> where
    F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>, 
[src]

Auto Trait Implementations

impl<'a, 's, F> Send for Reader<'a, 's, F> where
    F: Send

impl<'a, 's, F> Unpin for Reader<'a, 's, F> where
    F: Unpin

impl<'a, 's, F> Sync for Reader<'a, 's, F> where
    F: Sync

impl<'a, 's, F> UnwindSafe for Reader<'a, 's, F> where
    F: UnwindSafe

impl<'a, 's, F> RefUnwindSafe for Reader<'a, 's, F> where
    F: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]