pub struct SceneGraph {Show 14 fields
pub width: u32,
pub height: u32,
pub theme: Theme,
pub tod: TimeOfDay,
pub buddy: bool,
pub family: PaletteFamily,
pub grid: GridSpec,
pub cells: Vec<Cell>,
pub lighting: Lighting,
pub sprites: Vec<SpriteInstance>,
pub emitters: Vec<Emitter>,
pub ground_y: i32,
pub t_hero_ms: u64,
pub loop_ms: u64,
}Expand description
Everything needed to render one scene at one size and theme.
Fields§
§width: u32§height: u32§theme: Theme§tod: TimeOfDay§buddy: bool§family: PaletteFamily§grid: GridSpec§cells: Vec<Cell>Row-major, grid.cols * grid.rows.
lighting: Lighting§sprites: Vec<SpriteInstance>Drawn in order, after particles.
emitters: Vec<Emitter>§ground_y: i32Pixel y of the platform’s top surface (where feet stand).
t_hero_ms: u64Hero time in milliseconds: the frame used for stills and thumbnails.
loop_ms: u64Seamless loop length for periodic elements.
Implementations§
Trait Implementations§
Source§impl Clone for SceneGraph
impl Clone for SceneGraph
Auto Trait Implementations§
impl Forget for SceneGraph
impl Freeze for SceneGraph
impl Move for SceneGraph
impl RefUnwindSafe for SceneGraph
impl Send for SceneGraph
impl Sync for SceneGraph
impl Unpin for SceneGraph
impl UnsafeUnpin for SceneGraph
impl UnwindSafe for SceneGraph
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