Struct indigo::graphics::Canvas[][src]

pub struct Canvas<'a, 'b> { /* fields omitted */ }

A rendering helper for drawing images, meshes, and text.

Implementations

impl<'a, 'b> Canvas<'a, 'b>[src]

pub fn new(render: &'a mut Render<'b>) -> Result<Self>[src]

Creates a new canvas.

pub fn draw_quad(&mut self)[src]

Draws a quad with the given tint.

pub fn set_tint(&mut self, tint: [f32; 4])[src]

Sets the tint, which multiplies all colors drawn.

pub fn push_transform(&mut self, transform: Matrix4<f32>)[src]

Applies a transform, pushing it onto the stack.

This transform will be used for all future operations until a matching [pop_transform()] is called.

pub fn pop_transform(&mut self)[src]

Removes the most recently pushed transform.

pub fn finish(self)[src]

Finishes drawing on the canvas.

Auto Trait Implementations

impl<'a, 'b> !RefUnwindSafe for Canvas<'a, 'b>

impl<'a, 'b> Send for Canvas<'a, 'b>

impl<'a, 'b> Sync for Canvas<'a, 'b>

impl<'a, 'b> Unpin for Canvas<'a, 'b> where
    'b: 'a, 

impl<'a, 'b> !UnwindSafe for Canvas<'a, 'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,