pub struct JourneyBake { /* private fields */ }Expand description
A journey’s moving layers, ready to lay over the still background.
Implementations§
Source§impl JourneyBake
impl JourneyBake
Sourcepub fn new(graph: &SceneGraph, atlas: &GlyphAtlas) -> Option<Self>
pub fn new(graph: &SceneGraph, atlas: &GlyphAtlas) -> Option<Self>
None for a scene that stays put.
Sourcepub fn draw(
&self,
graph: &SceneGraph,
still: &IndexedImage,
t_ms: u64,
out: &mut IndexedImage,
)
pub fn draw( &self, graph: &SceneGraph, still: &IndexedImage, t_ms: u64, out: &mut IndexedImage, )
The background at t_ms into out: the still background, then each
strip from its offset, back to front.
Sourcepub fn background_at(
&self,
graph: &SceneGraph,
still: &IndexedImage,
t_ms: u64,
) -> IndexedImage
pub fn background_at( &self, graph: &SceneGraph, still: &IndexedImage, t_ms: u64, ) -> IndexedImage
JourneyBake::draw into a new image.
Trait Implementations§
Source§impl Clone for JourneyBake
impl Clone for JourneyBake
Auto Trait Implementations§
impl Forget for JourneyBake
impl Freeze for JourneyBake
impl Move for JourneyBake
impl RefUnwindSafe for JourneyBake
impl Send for JourneyBake
impl Sync for JourneyBake
impl Unpin for JourneyBake
impl UnsafeUnpin for JourneyBake
impl UnwindSafe for JourneyBake
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