Struct glium_graphics::Glium2d [] [src]

pub struct Glium2d {
    // some fields omitted
}

The resources needed for rendering 2D.

Methods

impl Glium2d
[src]

fn new<W>(opengl: OpenGL, window: &W) -> Glium2d where W: Facade

Creates a new Glium2d.

fn draw<F>(&mut self, target: &mut Frame, viewport: Viewport, f: F) where F: FnOnce(Context, &mut GliumGraphics<Frame>)

Renders 2D graphics.