Trait gltf_utils::PrimitiveIterators
[−]
[src]
pub trait PrimitiveIterators<'a>: Sealed { fn positions<'s, S: Source>(
&'a self,
source: &'s S
) -> Option<Positions<'s>>; fn normals<'s, S: Source>(&'a self, source: &'s S) -> Option<Normals<'s>>; fn tangents<'s, S: Source>(&'a self, source: &'s S) -> Option<Tangents<'s>>; fn colors<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Colors<'s>>
where
S: Source; fn indices<'s, S>(&'a self, source: &'s S) -> Option<Indices<'s>>
where
S: Source; fn joints<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Joints<'s>>
where
S: Source; fn tex_coords<'s, S>(
&'a self,
set: u32,
source: &'s S
) -> Option<TexCoords<'s>>
where
S: Source; fn weights<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Weights<'s>>
where
S: Source; }
Extra methods for working with gltf::Primitive
.
Required Methods
fn positions<'s, S: Source>(&'a self, source: &'s S) -> Option<Positions<'s>>
Visits the vertex positions of a primitive.
fn normals<'s, S: Source>(&'a self, source: &'s S) -> Option<Normals<'s>>
Visits the vertex normals of a primitive.
fn tangents<'s, S: Source>(&'a self, source: &'s S) -> Option<Tangents<'s>>
Visits the vertex tangents of a primitive.
fn colors<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Colors<'s>> where
S: Source,
S: Source,
Visits the vertex colors of a primitive.
fn indices<'s, S>(&'a self, source: &'s S) -> Option<Indices<'s>> where
S: Source,
S: Source,
Visits the vertex draw sequence of a primitive.
fn joints<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Joints<'s>> where
S: Source,
S: Source,
Visits the joint indices of the primitive.
fn tex_coords<'s, S>(&'a self, set: u32, source: &'s S) -> Option<TexCoords<'s>> where
S: Source,
S: Source,
Visits the vertex texture co-ordinates of a primitive.
fn weights<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Weights<'s>> where
S: Source,
S: Source,
Visits the joint weights of the primitive.
Implementations on Foreign Types
impl<'a> PrimitiveIterators<'a> for Primitive<'a>
[src]
fn positions<'s, S: Source>(&'a self, source: &'s S) -> Option<Positions<'s>>
[src]
fn normals<'s, S: Source>(&'a self, source: &'s S) -> Option<Normals<'s>>
[src]
fn tangents<'s, S: Source>(&'a self, source: &'s S) -> Option<Tangents<'s>>
[src]
fn colors<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Colors<'s>> where
S: Source,
[src]
S: Source,
fn indices<'s, S>(&'a self, source: &'s S) -> Option<Indices<'s>> where
S: Source,
[src]
S: Source,
fn joints<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Joints<'s>> where
S: Source,
[src]
S: Source,
fn tex_coords<'s, S>(&'a self, set: u32, source: &'s S) -> Option<TexCoords<'s>> where
S: Source,
[src]
S: Source,
fn weights<'s, S>(&'a self, set: u32, source: &'s S) -> Option<Weights<'s>> where
S: Source,
[src]
S: Source,