pub struct OverdrawGraphics { /* private fields */ }
Implementations
Trait Implementations
sourceimpl Debug for OverdrawGraphics
impl Debug for OverdrawGraphics
sourceimpl Graphics for OverdrawGraphics
impl Graphics for OverdrawGraphics
sourcefn will_render(&self)
fn will_render(&self)
Called at the beginning of a frame.
sourcefn did_render(&self)
fn did_render(&self)
Called at the end of a frame.
sourcefn on_resize(&self, width: i32, height: i32)
fn on_resize(&self, width: i32, height: i32)
Called when the buffer being drawn to was resized.
sourcefn save(&self)
fn save(&self)
Saves the graphics state until the next restore(). The state contains the transformation matrix, alpha, blend mode, and scissor rectangle. Read more
sourcefn rotate(&self, rotation: f32)
fn rotate(&self, rotation: f32)
Rotates the transformation matrix by the given angle, in degrees.
sourcefn transform(&self, m00: f32, m10: f32, m01: f32, m11: f32, m02: f32, m12: f32)
fn transform(&self, m00: f32, m10: f32, m01: f32, m11: f32, m02: f32, m12: f32)
Multiplies the transformation matrix by the given matrix.
sourcefn multiply_alpha(&self, factor: f32)
fn multiply_alpha(&self, factor: f32)
Multiplies the alpha by the given factor.
sourcefn set_blend_mode(&self, blend_mode: BlendMode)
fn set_blend_mode(&self, blend_mode: BlendMode)
Sets the blend mode to use for drawing.
sourcefn apply_scissor(&self, x: f32, y: f32, width: f32, height: f32)
fn apply_scissor(&self, x: f32, y: f32, width: f32, height: f32)
Sets the scissor rectangle to the intersection of the current scissor rectangle and the given rectangle, in local coordinates. Read more
sourcefn draw_texture(&self, texture: &Rc<dyn Texture>, dest_x: f32, dest_y: f32)
fn draw_texture(&self, texture: &Rc<dyn Texture>, dest_x: f32, dest_y: f32)
Draws a texture at the given point.
sourcefn draw_sub_texture(
&self,
texture: &Rc<dyn Texture>,
dest_x: f32,
dest_y: f32,
source_x: f32,
source_y: f32,
source_w: f32,
source_h: f32
)
fn draw_sub_texture(
&self,
texture: &Rc<dyn Texture>,
dest_x: f32,
dest_y: f32,
source_x: f32,
source_y: f32,
source_w: f32,
source_h: f32
)
Draws a texture sub-region at the given point.
Auto Trait Implementations
impl !RefUnwindSafe for OverdrawGraphics
impl !Send for OverdrawGraphics
impl !Sync for OverdrawGraphics
impl Unpin for OverdrawGraphics
impl !UnwindSafe for OverdrawGraphics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.