Struct gltf::mesh::Reader [−][src]
pub struct Reader<'a, 's, F> where
F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>, { /* fields omitted */ }Expand description
Mesh primitive reader.
Implementations
impl<'a, 's, F> Reader<'a, 's, F> where
F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>, [src]
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]
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]
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]
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]
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]
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]
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]
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]
pub fn read_weights(&self, set: u32) -> Option<ReadWeights<'s>>[src]Visits the joint weights of the primitive.
pub fn read_morph_targets(&self) -> ReadMorphTargets<'a, 's, F>ⓘNotable traits for ReadMorphTargets<'a, 's, F>
impl<'a, 's, F> Iterator for ReadMorphTargets<'a, 's, F> where
F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>, type Item = (Option<ReadPositionDisplacements<'s>>, Option<ReadNormalDisplacements<'s>>, Option<ReadTangentDisplacements<'s>>);[src]
pub fn read_morph_targets(&self) -> ReadMorphTargets<'a, 's, F>ⓘNotable traits for ReadMorphTargets<'a, 's, F>
impl<'a, 's, F> Iterator for ReadMorphTargets<'a, 's, F> where
F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>, type Item = (Option<ReadPositionDisplacements<'s>>, Option<ReadNormalDisplacements<'s>>, Option<ReadTangentDisplacements<'s>>);[src]Visits the morph targets of the primitive.
Trait Implementations
Auto Trait Implementations
impl<'a, 's, F> RefUnwindSafe for Reader<'a, 's, F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<'a, 's, F> Send for Reader<'a, 's, F> where
F: Send,
F: Send,
impl<'a, 's, F> Sync for Reader<'a, 's, F> where
F: Sync,
F: Sync,
impl<'a, 's, F> Unpin for Reader<'a, 's, F> where
F: Unpin,
F: Unpin,
impl<'a, 's, F> UnwindSafe for Reader<'a, 's, F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more