pub struct Alignment {
pub offset: Vec2,
pub rotation: f64,
pub scale: Vec2,
pub axes: Option<[Vec3; 2]>,
}
Expand description
Texture alignment properties
If axes are present, the alignment will be written in the “Valve220” format; otherwise it will be written in the “legacy” format pre-dating Valve220.
Fields§
§offset: Vec2
§rotation: f64
§scale: Vec2
§axes: Option<[Vec3; 2]>
Describes the X and Y texture-space axes
Trait Implementations§
Source§impl CheckWritable for Alignment
impl CheckWritable for Alignment
Source§fn check_writable(&self) -> ValidationResult
fn check_writable(&self) -> ValidationResult
Determine if an item can be written to file Read more
impl Copy for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnwindSafe for Alignment
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