pub fn swap_buffers(&self) {
        unsafe {
            ffi::cogl_onscreen_swap_buffers(self.to_glib_none().0);
        }
    }
/// Swaps the current back buffer being rendered too, to the front for display.
///
/// This function also implicitly discards the contents of the color, depth and
/// stencil buffers as if `Framebuffer::discard_buffers` were used. The
/// significance of the discard is that you should not expect to be able to
/// start a new frame that incrementally builds on the contents of the previous
/// frame.
///
/// `<note>`It is highly recommended that applications use
/// `Onscreen::swap_buffers_with_damage` instead whenever possible
/// and also use the `Onscreen::get_buffer_age` api so they can
/// perform incremental updates to older buffers instead of having to
/// render a full buffer for every frame.`</note>`
Swaps the current back buffer being rendered too, to the front for display.
This function also implicitly discards the contents of the color, depth and
stencil buffers as if `Framebuffer::discard_buffers` were used. The
significance of the discard is that you should not expect to be able to
start a new frame that incrementally builds on the contents of the previous
frame.


Swaps the current back buffer being rendered too to the front for display . This function also implicitly discards the contents of the color depth and stencil buffers as if ` Framebuffer :: discard_buffers ` were used . The significance of the discard is that you should not expect to be able to start a new frame that incrementally builds on the contents of the previous frame .
pub fn swap_buffers(&self) {
        unsafe {
            ffi::cogl_onscreen_swap_buffers(self.to_glib_none().0);
        }
    }
pub fn swap_buffers ( & self ) { unsafe { ffi :: cogl_onscreen_swap_buffers ( self . to_glib_none ( ) . 0 ) ; } }
Swaps the current back buffer being rendered too, to the front for display.
Swaps the current back buffer being rendered too to the front for display .
&self
&self