glium_graphics
pub struct Glium2d { // some fields omitted }
The resources needed for rendering 2D.
impl Glium2d
fn new<W>(opengl: OpenGL, window: &W) -> Glium2d where W: Facade
Creates a new Glium2d.
Glium2d
fn draw<F, U>(&mut self, target: &mut Frame, viewport: Viewport, f: F) -> U where F: FnOnce(Context, &mut GliumGraphics<Frame>) -> U
Renders 2D graphics.