fn update_matrices(&self, matrices: Arc<RwLock<CameraMatrices>>) {
        let c = self.get_combined_matrix();
        let mut matrices = matrices.write().expect("Could not write to matrices variable");

        matrices.combined = c;
        matrices.inverse = c.invert().unwrap_or(Matrix4::identity())
    }
/// Sends the camera's matrices to the graphics backend for rendering.
/// Run this function when you've edited the camera's variables e.g. position, view angle,
/// aspect ratio etc.
Sends the camera's matrices to the graphics backend for rendering.
Run this function when you've edited the camera's variables e.g. position, view angle,
aspect ratio etc.
Sends the camera ' s matrices to the graphics backend for rendering . Run this function when you ' ve edited the camera ' s variables e . g . position view angle aspect ratio etc .
fn update_matrices(&self, matrices: Arc<RwLock<CameraMatrices>>) {
        let c = self.get_combined_matrix();
        let mut matrices = matrices.write().expect("Could not write to matrices variable");
        matrices.combined = c;
        matrices.inverse = c.invert().unwrap_or(Matrix4::identity())
    }
fn update_matrices ( & self , matrices : Arc < RwLock < CameraMatrices > > ) { let c = self . get_combined_matrix ( ) ; let mut matrices = matrices . write ( ) . expect ( " " ) ; matrices . combined = c ; matrices . inverse = c . invert ( ) . unwrap_or ( Matrix4 :: identity ( ) ) }
Sends the camera's matrices to the graphics backend for rendering.
Sends the camera ' s matrices to the graphics backend for rendering .
&self
matrices
Arc<RwLock<CameraMatrices>>
&self
matrices
Arc<RwLock<CameraMatrices>>