pub struct SpriteBatchTexturedDraw {
pub color: Color,
pub src_rect: Rect,
pub rect: Rect,
pub rotation: f32,
}Expand description
Draw data for a single instance in a textured batched sprite draw.
Fields§
§color: ColorColor to multiply texture color with. Using Color::WHITE will mean the texture will render as-is.
src_rect: RectUV sub-rectangle to use. Using Rect::ONE will mean that the full UV space is available.
rect: RectWhere to draw the sprite.
rotation: f32Rotation (in radians) of the sprite.
Auto Trait Implementations§
impl Freeze for SpriteBatchTexturedDraw
impl RefUnwindSafe for SpriteBatchTexturedDraw
impl Send for SpriteBatchTexturedDraw
impl Sync for SpriteBatchTexturedDraw
impl Unpin for SpriteBatchTexturedDraw
impl UnwindSafe for SpriteBatchTexturedDraw
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more