pub fn perspective(&self, fov_y: f32, aspect: f32, z_near: f32, z_far: f32) {
        unsafe {
            ffi::cogl_matrix_stack_perspective(self.to_glib_none().0, fov_y, aspect, z_near, z_far);
        }
    }
/// Replaces the current matrix with a perspective matrix based on the
/// provided values.
///
/// `<note>`You should be careful not to have too great a `z_far` / `z_near`
/// ratio since that will reduce the effectiveness of depth testing
/// since there wont be enough precision to identify the depth of
/// objects near to each other.`</note>`
/// ## `fov_y`
/// Vertical field of view angle in degrees.
/// ## `aspect`
/// The (width over height) aspect ratio for display
/// ## `z_near`
/// The distance to the near clipping plane (Must be positive,
///  and must not be 0)
/// ## `z_far`
/// The distance to the far clipping plane (Must be positive)
Replaces the current matrix with a perspective matrix based on the
provided values.


Replaces the current matrix with a perspective matrix based on the provided values .
pub fn perspective(&self, fov_y: f32, aspect: f32, z_near: f32, z_far: f32) {
        unsafe {
            ffi::cogl_matrix_stack_perspective(self.to_glib_none().0, fov_y, aspect, z_near, z_far);
        }
    }
pub fn perspective ( & self , fov_y : f32 , aspect : f32 , z_near : f32 , z_far : f32 ) { unsafe { ffi :: cogl_matrix_stack_perspective ( self . to_glib_none ( ) . 0 , fov_y , aspect , z_near , z_far ) ; } }
Replaces the current matrix with a perspective matrix based on the
provided values.
Replaces the current matrix with a perspective matrix based on the provided values .
&self
fov_y
f32
aspect
f32
z_near
f32
z_far
f32
&self
fov_y
f32
aspect
f32
z_near
f32
z_far
f32
`fov_y`
Vertical field of view angle in degrees.
Vertical field of view angle in degrees .
`aspect`
The (width over height) aspect ratio for display
The ( width over height ) aspect ratio for display
`z_near`
The distance to the near clipping plane (Must be positive,
and must not be 0)
The distance to the near clipping plane ( Must be positive and must not be 0 )
`z_far`
The distance to the far clipping plane (Must be positive)
The distance to the far clipping plane ( Must be positive )