pub fn new(width: usize, height: usize) -> OpenGlOffscreenRenderer {
        // Create the main render target
        let main_render_target  = RenderTarget::new(width as u16, height as u16, RenderTargetType::Standard);

        // Set up the renderer to render to this target
        let renderer            = GlRenderer::new();

        // Generate the offscreen renderer
        OpenGlOffscreenRenderer {
            width:              width,
            height:             height,
            main_render_target: main_render_target,
            renderer:           renderer
        }
    }
///
/// Creates a new OpenGL offscreen renderer with a texture of the specified size
///
Creates a new OpenGL offscreen renderer with a texture of the specified size
Creates a new OpenGL offscreen renderer with a texture of the specified size
pub fn new(width: usize, height: usize) -> OpenGlOffscreenRenderer {
        // Create the main render target
        let main_render_target  = RenderTarget::new(width as u16, height as u16, RenderTargetType::Standard);
        // Set up the renderer to render to this target
        let renderer            = GlRenderer::new();
        // Generate the offscreen renderer
        OpenGlOffscreenRenderer {
            width:              width,
            height:             height,
            main_render_target: main_render_target,
            renderer:           renderer
        }
    }
pub fn new ( width : usize , height : usize ) -> OpenGlOffscreenRenderer { // Create the main render target let main_render_target = RenderTarget :: new ( width as u16 , height as u16 , RenderTargetType :: Standard ) ; // Set up the renderer to render to this target let renderer = GlRenderer :: new ( ) ; // Generate the offscreen renderer OpenGlOffscreenRenderer { width : width , height : height , main_render_target : main_render_target , renderer : renderer } }
Creates a new OpenGL offscreen renderer with a texture of the specified size
Creates a new OpenGL offscreen renderer with a texture of the specified size
width
usize
height
usize