Struct nannou::app::Draw [−][src]
pub struct Draw<'a> { /* fields omitted */ }
A nannou::Draw instance owned by the App. A simple API for sketching with 2D and 3D graphics.
This is a conveniently accessible Draw instance which can be easily re-used between calls to an app's view function.
Methods
impl<'a> Draw<'a>
[src]
impl<'a> Draw<'a>
pub fn to_frame(
&self,
app: &App,
frame: &Frame
) -> Result<(), RendererDrawError>
[src]
pub fn to_frame(
&self,
app: &App,
frame: &Frame
) -> Result<(), RendererDrawError>
Draw the current state of the inner mesh to the given frame.
Methods from Deref<Target = RefMut<'a, Draw<DrawScalar>>>
Trait Implementations
impl<'a> Debug for Draw<'a>
[src]
impl<'a> Debug for Draw<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Deref for Draw<'a>
[src]
impl<'a> Deref for Draw<'a>
type Target = RefMut<'a, Draw<DrawScalar>>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<'a> DerefMut for Draw<'a>
[src]
impl<'a> DerefMut for Draw<'a>