Struct indigo::graphics::Canvas [−][src]
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,
'b: 'a,
impl<'a, 'b> !UnwindSafe for Canvas<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,