Struct gfx::extra::canvas::Canvas
[−]
[src]
pub struct Canvas<W, D: Device, F> { pub output: W, pub device: D, pub factory: F, pub renderer: Renderer<D, D>, }
A canvas with everything you need to draw on it.
Fields
output | Output window. |
device | Graphics device. |
factory | Resource factory. |
renderer | Renderer front-end. |
Methods
impl<D: Device, F: Factory<D>, W: Window<D>> Canvas<W, D, F>
fn present(&mut self)
Show what we've been drawing all this time.