pub struct TextureTransform {
pub offset: [f32; 2],
pub rotation: f32,
pub scale: [f32; 2],
}Expand description
UV transform attached to an individual texture reference.
Fields§
§offset: [f32; 2]UV translation applied after scale and rotation.
rotation: f32Counter-clockwise rotation in radians.
scale: [f32; 2]Per-axis UV scale.
Trait Implementations§
Source§impl Clone for TextureTransform
impl Clone for TextureTransform
impl Copy for TextureTransform
Source§impl Debug for TextureTransform
impl Debug for TextureTransform
Source§impl Default for TextureTransform
impl Default for TextureTransform
Source§impl PartialEq for TextureTransform
impl PartialEq for TextureTransform
impl StructuralPartialEq for TextureTransform
Auto Trait Implementations§
impl Freeze for TextureTransform
impl RefUnwindSafe for TextureTransform
impl Send for TextureTransform
impl Sync for TextureTransform
impl Unpin for TextureTransform
impl UnsafeUnpin for TextureTransform
impl UnwindSafe for TextureTransform
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