pub struct Settings {
pub packed: bool,
pub packing_mode: PackingMode,
pub packing_rotation: Rotation,
pub mesh_type: u8,
}Expand description
SpriteSettings (export/SpriteHelper.py:29-40): settingsRaw’s bits.
Fields§
§packed: boolBit 0.
packing_mode: PackingModeBit 1.
packing_rotation: RotationBits 2 to 5.
mesh_type: u8Bit 6, SpriteMeshType: 0 kSMTFullRect, 1 kSMTTight, which
rendering does not read.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn parse(raw: u64) -> Result<Self, SpriteError>
pub fn parse(raw: u64) -> Result<Self, SpriteError>
SpriteSettings(settings_raw): a rotation from 5 to 15 is no
SpritePackingRotation, SpriteError::Rotation; the bits past 6
are ignored (:35-40).
Trait Implementations§
impl Copy for Settings
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Forget for Settings
impl Freeze for Settings
impl Move for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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