pub struct TextureTransform3D { /* private fields */ }Expand description
Pre-baked 2D affine UV transform implementing KHR_texture_transform.
Implementations§
Source§impl TextureTransform3D
UV matrix baking and coordinate transformation for TextureTransform3D.
impl TextureTransform3D
UV matrix baking and coordinate transformation for TextureTransform3D.
Source§impl TextureTransform3D
Implements impl #impl_generics #name #ty_generics #where_clause.
impl TextureTransform3D
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_offset(&self) -> Vec2
pub fn get_mut_offset(&mut self) -> &mut Vec2
pub fn set_offset(&mut self, val: Vec2) -> &mut Self
pub fn get_rotation(&self) -> f32
pub fn get_mut_rotation(&mut self) -> &mut f32
pub fn set_rotation(&mut self, val: f32) -> &mut Self
pub fn get_scale(&self) -> Vec2
pub fn get_mut_scale(&mut self) -> &mut Vec2
pub fn set_scale(&mut self, val: Vec2) -> &mut Self
pub fn get_uv_matrix(&self) -> [f32; 6]
pub fn get_mut_uv_matrix(&mut self) -> &mut [f32; 6]
pub fn set_uv_matrix(&mut self, val: [f32; 6]) -> &mut Self
Trait Implementations§
Source§impl Clone for TextureTransform3D
impl Clone for TextureTransform3D
impl Copy for TextureTransform3D
Source§impl Debug for TextureTransform3D
impl Debug for TextureTransform3D
Source§impl Default for TextureTransform3D
Default identity TextureTransform3D.
impl Default for TextureTransform3D
Default identity TextureTransform3D.
Source§impl PartialEq for TextureTransform3D
impl PartialEq for TextureTransform3D
impl StructuralPartialEq for TextureTransform3D
Auto Trait Implementations§
impl Forget for TextureTransform3D
impl Freeze for TextureTransform3D
impl Move for TextureTransform3D
impl RefUnwindSafe for TextureTransform3D
impl Send for TextureTransform3D
impl Sync for TextureTransform3D
impl Unpin for TextureTransform3D
impl UnsafeUnpin for TextureTransform3D
impl UnwindSafe for TextureTransform3D
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