pub struct ProgressiveRenderer { /* private fields */ }Expand description
Progressive rendering manager
Implementations§
Source§impl ProgressiveRenderer
impl ProgressiveRenderer
Sourcepub fn add_tiles(&mut self, tiles: Vec<TileCoord>, priority: u32)
pub fn add_tiles(&mut self, tiles: Vec<TileCoord>, priority: u32)
Adds tiles to the render queue
Sourcepub fn next_batch(&mut self) -> Vec<TileCoord>
pub fn next_batch(&mut self) -> Vec<TileCoord>
Gets the next tiles to render
Sourcepub fn mark_completed(&mut self, coord: TileCoord)
pub fn mark_completed(&mut self, coord: TileCoord)
Marks a tile as completed
Sourcepub fn is_completed(&self, coord: &TileCoord) -> bool
pub fn is_completed(&self, coord: &TileCoord) -> bool
Checks if a tile is completed
Sourcepub fn is_rendering(&self, coord: &TileCoord) -> bool
pub fn is_rendering(&self, coord: &TileCoord) -> bool
Checks if a tile is rendering
Sourcepub fn stats(&self) -> ProgressiveRenderStats
pub fn stats(&self) -> ProgressiveRenderStats
Returns rendering statistics
Auto Trait Implementations§
impl Freeze for ProgressiveRenderer
impl RefUnwindSafe for ProgressiveRenderer
impl Send for ProgressiveRenderer
impl Sync for ProgressiveRenderer
impl Unpin for ProgressiveRenderer
impl UnsafeUnpin for ProgressiveRenderer
impl UnwindSafe for ProgressiveRenderer
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