pub fn update_model(&mut self, mesh_id: MeshId, model_id: ModelId, model: Matrix4<f32>) {
        let arena = self
            .models
            .get_mut(mesh_id.0)
            .unwrap_or_else(|| panic!("Invalid mesh ID: {}", mesh_id.0));
        (*arena.get_mut(model_id).unwrap()) = model;
    }
/// Updates the mesh manager with these updates. Will be pushed to the GPU during the next render
Updates the mesh manager with these updates. Will be pushed to the GPU during the next render
Updates the mesh manager with these updates . Will be pushed to the GPU during the next render
pub fn update_model(&mut self, mesh_id: MeshId, model_id: ModelId, model: Matrix4<f32>) {
        let arena = self
            .models
            .get_mut(mesh_id.0)
            .unwrap_or_else(|| panic!("Invalid mesh ID: {}", mesh_id.0));
        (*arena.get_mut(model_id).unwrap()) = model;
    }
pub fn update_model ( & mut self , mesh_id : MeshId , model_id : ModelId , model : Matrix4 < f32 > ) { let arena = self . models . get_mut ( mesh_id . 0 ) . unwrap_or_else ( | | panic ! ( " " mesh_id 0 ) ) ; ( * arena . get_mut ( model_id ) . unwrap ( ) ) = model ; }
Updates the mesh manager with these updates.
Updates the mesh manager with these updates .
&mut self
mesh_id
MeshId
model_id
ModelId
model
Matrix4<f32>
&mut self
mesh_id
MeshId
model_id
ModelId
model
Matrix4<f32>