Struct glium_graphics::Glium2d [−][src]
pub struct Glium2d { /* fields omitted */ }
The resources needed for rendering 2D.
Methods
impl Glium2d
[src]
impl Glium2d
pub fn new<W>(opengl: OpenGL, window: &W) -> Glium2d where
W: Facade,
[src]
pub fn new<W>(opengl: OpenGL, window: &W) -> Glium2d where
W: Facade,
Creates a new Glium2d
.
pub fn draw<F, U>(&mut self, target: &mut Frame, viewport: Viewport, f: F) -> U where
F: FnOnce(Context, &mut GliumGraphics<Frame>) -> U,
[src]
pub 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.