Struct gfx_graphics::Gfx2d
[−]
[src]
pub struct Gfx2d<R: Resources> { // some fields omitted }
The data used for drawing 2D graphics.
Methods
impl<R: Resources> Gfx2d<R>
[src]
fn new<F>(factory: &mut F) -> Self where F: Factory<R>
Creates a new Gfx2d object.
fn draw<C, O, F>(&mut self, renderer: &mut Renderer<R, C>, output: &O, viewport: Viewport, f: F) where C: CommandBuffer<R>, O: Output<R>, F: FnOnce(Context, &mut GfxGraphics<R, C, O>)
Renders graphics to a Gfx renderer.