pub struct RenderPipeline { /* private fields */ }Expand description
Render system - manages all rendering operations
Implementations§
Source§impl RenderPipeline
impl RenderPipeline
pub fn new() -> Self
Sourcepub fn render_direct(
&mut self,
world: &World,
position_storage: &ComponentStorage<Position>,
renderer_storage: &ComponentStorage<RendererComponent>,
size_storage: &ComponentStorage<Size>,
pivot_storage: &ComponentStorage<Pivot>,
background_tilemap: &'static TileMap,
foreground_tilemap: &'static TileMap,
display: &mut impl Display,
)
pub fn render_direct( &mut self, world: &World, position_storage: &ComponentStorage<Position>, renderer_storage: &ComponentStorage<RendererComponent>, size_storage: &ComponentStorage<Size>, pivot_storage: &ComponentStorage<Pivot>, background_tilemap: &'static TileMap, foreground_tilemap: &'static TileMap, display: &mut impl Display, )
Main render function - orchestrates the entire rendering process
Order of operations:
- Draw background tilemap
- Draw all entities (sprites)
- Draw foreground tilemap
- Draw debug info (if enabled)
- Flush to display
Auto Trait Implementations§
impl Freeze for RenderPipeline
impl RefUnwindSafe for RenderPipeline
impl Send for RenderPipeline
impl Sync for RenderPipeline
impl Unpin for RenderPipeline
impl UnwindSafe for RenderPipeline
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