Struct rust_raylib::model::Model
source · pub struct Model { /* private fields */ }Expand description
Model, meshes, materials and animation data
Implementations§
source§impl Model
impl Model
sourcepub fn get_bounding_box(&self) -> BoundingBox
pub fn get_bounding_box(&self) -> BoundingBox
Compute model bounding box limits (considers all meshes)
sourcepub fn set_mesh_material(&mut self, mesh_id: u32, material_id: u32)
pub fn set_mesh_material(&mut self, mesh_id: u32, material_id: u32)
Set material for a mesh
sourcepub fn update_animation(&self, anim: &ModelAnimation, frame: u32)
pub fn update_animation(&self, anim: &ModelAnimation, frame: u32)
Update model animation pose
sourcepub fn is_animation_valid(&self, anim: &ModelAnimation) -> bool
pub fn is_animation_valid(&self, anim: &ModelAnimation) -> bool
Check model animation skeleton match
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Model
impl !Send for Model
impl !Sync for Model
impl Unpin 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