pub fn new() -> FramebufferManager {
        let ctxt = Context::get();

        // create an off-screen framebuffer
        let fbo = ctxt
            .create_framebuffer()
            .expect("Framebuffer creation failed.");

        // ensure that the current framebuffer is the screen
        verify!(ctxt.bind_framebuffer(Context::FRAMEBUFFER, None));

        FramebufferManager {
            fbo_onscreen: true,
            fbo: fbo,
        }
    }
/// Creates a new framebuffer manager.
Creates a new framebuffer manager.
Creates a new framebuffer manager .
pub fn new() -> FramebufferManager {
        let ctxt = Context::get();
        // create an off-screen framebuffer
        let fbo = ctxt
            .create_framebuffer()
            .expect("Framebuffer creation failed.");
        // ensure that the current framebuffer is the screen
        verify!(ctxt.bind_framebuffer(Context::FRAMEBUFFER, None));
        FramebufferManager {
            fbo_onscreen: true,
            fbo: fbo,
        }
    }
pub fn new ( ) -> FramebufferManager { let ctxt = Context :: get ( ) ; // create an off-screen framebuffer let fbo = ctxt . create_framebuffer ( ) . expect ( " " ) ; // ensure that the current framebuffer is the screen verify ! ( ctxt bind_framebuffer ( Context FRAMEBUFFER None ) ) ; FramebufferManager { fbo_onscreen : true , fbo : fbo , } }
Creates a new framebuffer manager.
Creates a new framebuffer manager .