pub struct Importer<'a> { /* private fields */ }
Expand description
A completed impporter, which is used to translate primitive lists.
Created with Geom::importer
,
Implementations§
Source§impl<'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> ⓘ
pub fn read<'b, C: ?Sized, V: VertexLoad<'a, C>>( &'b self, ctx: &'b C, array: &'a [u32], ) -> ArrayIter<'a, 'b, C, 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::verts
and the elements ofPolygonHole::hole
PolyListGeom::prim
TriangleGeom::prim
- the elements of
TriFanGeom::prim
- the elements of
TriStripGeom::prim
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Importer<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more