pub fn prepare_to_render_to_active_framebuffer(&mut self, width: usize, height: usize) {
        unsafe {
            panic_on_gl_error("Preparing to render");

            // Set the default render target to be a reference to the current render target
            self.default_render_target = Some(RenderTarget::reference_to_current());

            // Set the viewport to the specified width and height
            gl::Viewport(0, 0, width as gl::types::GLsizei, height as gl::types::GLsizei);

            self.active_shader      = None;
            self.transform_matrix   = Some(Matrix::identity().to_opengl_matrix());

            panic_on_gl_error("After preparing to render");
        }
    }
///
/// Prepares to render to the active framebuffer
///
Prepares to render to the active framebuffer
Prepares to render to the active framebuffer
pub fn prepare_to_render_to_active_framebuffer(&mut self, width: usize, height: usize) {
        unsafe {
            panic_on_gl_error("Preparing to render");
            // Set the default render target to be a reference to the current render target
            self.default_render_target = Some(RenderTarget::reference_to_current());
            // Set the viewport to the specified width and height
            gl::Viewport(0, 0, width as gl::types::GLsizei, height as gl::types::GLsizei);
            self.active_shader      = None;
            self.transform_matrix   = Some(Matrix::identity().to_opengl_matrix());
            panic_on_gl_error("After preparing to render");
        }
    }
pub fn prepare_to_render_to_active_framebuffer ( & mut self , width : usize , height : usize ) { unsafe { panic_on_gl_error ( " " ) ; // Set the default render target to be a reference to the current render target self . default_render_target = Some ( RenderTarget :: reference_to_current ( ) ) ; // Set the viewport to the specified width and height gl :: Viewport ( 0 , 0 , width as gl :: types :: GLsizei , height as gl :: types :: GLsizei ) ; self . active_shader = None ; self . transform_matrix = Some ( Matrix :: identity ( ) . to_opengl_matrix ( ) ) ; panic_on_gl_error ( " " ) ; } }
Prepares to render to the active framebuffer
Prepares to render to the active framebuffer
&mut self
width
usize
height
usize