pub struct LoadedSheet {
pub reference: String,
pub sheet: SpriteSheet,
pub image: Option<String>,
pub shader: Option<String>,
pub pixels: Option<Rc<(u32, u32, Vec<u8>)>>,
}Expand description
A loaded sprite sheet.
Fields§
§reference: StringThe sheet’s resource reference.
sheet: SpriteSheetThe sheet: its sprites by name.
image: Option<String>ImageBuffer reference holding the sheet image (the material’s diffuse slot).
shader: Option<String>The material instance’s base material (e.g. Material\UI\Logo.rsc:resource), which
selects the shader. Most sheets use the plain UI material.
pixels: Option<Rc<(u32, u32, Vec<u8>)>>An image made at run time (width, height, RGBA) instead of image: a save’s
preview, which the Save and Load dialogs wrap in a sheet of their own.
Auto Trait Implementations§
impl !Send for LoadedSheet
impl !Sync for LoadedSheet
impl Freeze for LoadedSheet
impl RefUnwindSafe for LoadedSheet
impl Unpin for LoadedSheet
impl UnsafeUnpin for LoadedSheet
impl UnwindSafe for LoadedSheet
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