Struct nannou::app::Draw
[−]
[src]
pub struct Draw<'a> { /* fields omitted */ }
A nannou::Draw
instance owned by the App
.
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]
pub fn to_frame(
&self,
app: &App,
frame: &Frame
) -> Result<(), RendererDrawError>
[src]
&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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Deref for Draw<'a>
[src]
type Target = RefMut<'a, Draw<DrawScalar>>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.