Struct chair::MeshReader
source · pub struct MeshReader<'a, A: Atlas> { /* private fields */ }
Expand description
Configuration for reading meshes
§Examples
let reader = MeshReader::new::<BasicVertex>(&atlas, None)
// refuse to load any meshes that can be animated, even though the information would be discarded
.ban_feature(MeshFeature::Rigged);
// Minimal file with no vertices
let bytes = b"CHAIR\x00\x00\x00\x00\x00\x00\x00";
reader.read::<BasicVertex>(bytes).unwrap();
Implementations§
source§impl<'a, A: Atlas> MeshReader<'a, A>
impl<'a, A: Atlas> MeshReader<'a, A>
pub fn new<V: Vertex>(atlas: &'a A, fallback: Option<&str>) -> Self
pub fn ban_feature(self, feature: MeshFeature) -> Self
pub fn ban_features(self, features: MeshFeatures) -> Self
pub fn require_feature(self, feature: MeshFeature) -> Self
pub fn require_features(self, features: MeshFeatures) -> Self
Auto Trait Implementations§
impl<'a, A> Freeze for MeshReader<'a, A>
impl<'a, A> RefUnwindSafe for MeshReader<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for MeshReader<'a, A>where
A: Sync,
impl<'a, A> Sync for MeshReader<'a, A>where
A: Sync,
impl<'a, A> Unpin for MeshReader<'a, A>
impl<'a, A> UnwindSafe for MeshReader<'a, A>where
A: RefUnwindSafe,
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