pub struct LayerSubTexture { /* private fields */ }Expand description
Sub-texture definition (Reforged multi-texture)
Implementations§
Source§impl LayerSubTexture
impl LayerSubTexture
Sourcepub fn texture_id(&self) -> u32
pub fn texture_id(&self) -> u32
Index into texture array
pub fn set_texture_id(&mut self, value: u32)
Sourcepub fn slot(&self) -> LayerSlotType
pub fn slot(&self) -> LayerSlotType
Texture slot number
pub fn set_slot(&mut self, value: LayerSlotType)
Sourcepub fn tracks(&self) -> Ref<'_, TrackU32>
pub fn tracks(&self) -> Ref<'_, TrackU32>
Texture ID animation Borrows the field in place — no copy, no allocation.
pub fn tracks_mut(&mut self) -> RefMut<'_, TrackU32>
Trait Implementations§
Source§impl Debug for LayerSubTexture
impl Debug for LayerSubTexture
Source§impl Default for LayerSubTexture
impl Default for LayerSubTexture
Source§impl Drop for LayerSubTexture
impl Drop for LayerSubTexture
impl Send for LayerSubTexture
Auto Trait Implementations§
impl !Sync for LayerSubTexture
impl Freeze for LayerSubTexture
impl RefUnwindSafe for LayerSubTexture
impl Unpin for LayerSubTexture
impl UnsafeUnpin for LayerSubTexture
impl UnwindSafe for LayerSubTexture
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