fn create_render_target(&mut self, width: usize, height: usize) -> Self::RenderTarget {
        unsafe {
            let set_context_error = cgl::CGLSetCurrentContext(self.context);
            if set_context_error != 0 { panic!("CGLSetCurrentContext {:x}", set_context_error); }

            OpenGlOffscreenRenderer::new(width, height)
        }
    }
///
/// Creates a new render target for this context
///
Creates a new render target for this context
Creates a new render target for this context
fn create_render_target(&mut self, width: usize, height: usize) -> Self::RenderTarget {
        unsafe {
            let set_context_error = cgl::CGLSetCurrentContext(self.context);
            if set_context_error != 0 { panic!("CGLSetCurrentContext {:x}", set_context_error); }
            OpenGlOffscreenRenderer::new(width, height)
        }
    }
fn create_render_target ( & mut self , width : usize , height : usize ) -> Self :: RenderTarget { unsafe { let set_context_error = cgl :: CGLSetCurrentContext ( self . context ) ; if set_context_error != 0 { panic ! ( " " set_context_error ) ; } OpenGlOffscreenRenderer :: new ( width , height ) } }
Creates a new render target for this context
Creates a new render target for this context
&mut self
width
usize
height
usize