logo
pub struct OverdrawGraphics { /* private fields */ }

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Called at the beginning of a frame.

Called at the end of a frame.

Called when the buffer being drawn to was resized.

Saves the graphics state until the next restore(). The state contains the transformation matrix, alpha, blend mode, and scissor rectangle. Read more

Translates the transformation matrix.

Scales the transformation matrix.

Rotates the transformation matrix by the given angle, in degrees.

Multiplies the transformation matrix by the given matrix.

Multiplies the alpha by the given factor.

Sets the alpha to use for drawing.

Sets the blend mode to use for drawing.

Sets the scissor rectangle to the intersection of the current scissor rectangle and the given rectangle, in local coordinates. Read more

Restores the graphics state back to the previous save().

Draws a texture at the given point.

Draws a texture sub-region at the given point.

Draws a repeating texture to the given region.

Draws a colored rectangle at the given region.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.