pub struct RenderPipeline { /* private fields */ }Expand description
Render system - draws all entities
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, )
Run the render system - renders full screen
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