pub struct DrawTextureParams {
pub dest_size: Option<Vec2>,
pub source: Option<Rect>,
pub rotation: f32,
pub pivot: Option<Vec2>,
}
Fields
dest_size: Option<Vec2>
source: Option<Rect>
Part of texture to draw. If None - draw the whole texture. Good use example: drawing an image from texture atlas. Is None by default
rotation: f32
Rotation in radians
pivot: Option<Vec2>
Rotation around this point
Trait Implementations
sourceimpl Default for DrawTextureParams
impl Default for DrawTextureParams
sourcefn default() -> DrawTextureParams
fn default() -> DrawTextureParams
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DrawTextureParams
impl Send for DrawTextureParams
impl Sync for DrawTextureParams
impl Unpin for DrawTextureParams
impl UnwindSafe for DrawTextureParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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