pub struct Model(/* private fields */);Implementations§
Trait Implementations§
Source§impl RaylibModel for Model
impl RaylibModel for Model
fn transform(&self) -> &Matrix
fn set_transform(&mut self, mat: &Matrix)
fn meshes(&self) -> &[WeakMesh]
fn meshes_mut(&mut self) -> &mut [WeakMesh]
fn materials(&self) -> &[WeakMaterial]
fn materials_mut(&mut self) -> &mut [WeakMaterial]
fn bones(&self) -> Option<&[BoneInfo]>
fn bones_mut(&mut self) -> Option<&mut [BoneInfo]>
fn bind_pose(&self) -> Option<&Transform>
fn bind_pose_mut(&mut self) -> Option<&mut Transform>
Source§fn is_model_animation_valid(&self, anim: &ModelAnimation) -> bool
fn is_model_animation_valid(&self, anim: &ModelAnimation) -> bool
Check model animation skeleton match
Source§fn is_model_valid(&self) -> bool
fn is_model_valid(&self) -> bool
Check if a model is ready
Source§fn get_model_bounding_box(&self) -> BoundingBox
fn get_model_bounding_box(&self) -> BoundingBox
Compute model bounding box limits (considers all meshes)
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl !Send for Model
impl !Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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