Struct dae_parser::geom::Importer
source · [−]pub struct Importer<'a> { /* private fields */ }Expand description
A completed impporter, which is used to translate primitive lists.
Created with Geom::importer,
Implementations
sourceimpl<'a> Importer<'a>
impl<'a> Importer<'a>
sourcepub fn build_vertex<C: ?Sized, V: VertexLoad<'a, C>>(
&self,
ctx: &C,
data: &[u32]
) -> V
pub fn build_vertex<C: ?Sized, V: VertexLoad<'a, C>>(
&self,
ctx: &C,
data: &[u32]
) -> V
sourcepub fn normal_importer(&self) -> Option<&SourceReader<'a, XYZ>>
pub fn normal_importer(&self) -> Option<&SourceReader<'a, XYZ>>
Get the importer for normal data.
sourcepub fn texcoord_importer(&self, set: u32) -> Option<&SourceReader<'a, ST>>
pub fn texcoord_importer(&self, set: u32) -> Option<&SourceReader<'a, ST>>
Get the importer for texture coordinate data.
sourcepub fn read<'b, C: ?Sized, V: VertexLoad<'a, C>>(
&'b self,
ctx: &'b C,
array: &'a [u32]
) -> ArrayIter<'a, 'b, C, V>ⓘNotable traits for ArrayIter<'a, 'b, C, V>impl<'a, 'b, C: ?Sized, V: VertexLoad<'a, C>> Iterator for ArrayIter<'a, 'b, C, V> type Item = V;
pub fn read<'b, C: ?Sized, V: VertexLoad<'a, C>>(
&'b self,
ctx: &'b C,
array: &'a [u32]
) -> ArrayIter<'a, 'b, C, V>ⓘNotable traits for ArrayIter<'a, 'b, C, V>impl<'a, 'b, C: ?Sized, V: VertexLoad<'a, C>> Iterator for ArrayIter<'a, 'b, C, V> type Item = V;
Construct a new vertex iterator from some user context C (can be ()),
and an array coming from one of the prim fields:
LineGeom::prim- the elements of
LineStripGeom::prim PolygonHole::vertsand the elements ofPolygonHole::holePolyListGeom::primTriangleGeom::prim- the elements of
TriFanGeom::prim - the elements of
TriStripGeom::prim
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Importer<'a>
impl<'a> Send for Importer<'a>
impl<'a> Sync for Importer<'a>
impl<'a> Unpin for Importer<'a>
impl<'a> UnwindSafe for Importer<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more