[−][src]Trait amethyst_rendy::RenderPlugin
Basic building block of rendering in [RenderingBundle].
Can be used to register rendering-related systems to the dispatcher, building render graph by registering render targets, adding [RenderableAction]s to them and signalling when the graph has to be rebuild.
Required methods
fn on_plan(
&mut self,
plan: &mut RenderPlan<B>,
factory: &mut Factory<B>,
world: &World
) -> Result<(), Error>
&mut self,
plan: &mut RenderPlan<B>,
factory: &mut Factory<B>,
world: &World
) -> Result<(), Error>
Hook for extending the rendering plan.
Provided methods
fn on_build<'a, 'b>(
&mut self,
_world: &mut World,
_builder: &mut DispatcherBuilder<'a, 'b>
) -> Result<(), Error>
&mut self,
_world: &mut World,
_builder: &mut DispatcherBuilder<'a, 'b>
) -> Result<(), Error>
Hook for adding systems and bundles to the dispatcher.
fn should_rebuild(&mut self, _world: &World) -> bool
Hook for providing triggers to rebuild the render graph.
Implementors
impl<B: Backend> RenderPlugin<B> for RenderDebugLines
[src]
fn on_plan(
&mut self,
plan: &mut RenderPlan<B>,
_factory: &mut Factory<B>,
_world: &World
) -> Result<(), Error>
[src]
&mut self,
plan: &mut RenderPlan<B>,
_factory: &mut Factory<B>,
_world: &World
) -> Result<(), Error>
impl<B: Backend> RenderPlugin<B> for RenderFlat2D
[src]
fn on_build<'a, 'b>(
&mut self,
world: &mut World,
builder: &mut DispatcherBuilder<'a, 'b>
) -> Result<(), Error>
[src]
&mut self,
world: &mut World,
builder: &mut DispatcherBuilder<'a, 'b>
) -> Result<(), Error>
fn on_plan(
&mut self,
plan: &mut RenderPlan<B>,
_factory: &mut Factory<B>,
_world: &World
) -> Result<(), Error>
[src]
&mut self,
plan: &mut RenderPlan<B>,
_factory: &mut Factory<B>,
_world: &World
) -> Result<(), Error>
impl<B: Backend> RenderPlugin<B> for RenderSkybox
[src]
fn on_plan(
&mut self,
plan: &mut RenderPlan<B>,
_factory: &mut Factory<B>,
_world: &World
) -> Result<(), Error>
[src]
&mut self,
plan: &mut RenderPlan<B>,
_factory: &mut Factory<B>,
_world: &World
) -> Result<(), Error>
impl<B: Backend> RenderPlugin<B> for RenderToWindow
[src]
fn on_build<'a, 'b>(
&mut self,
world: &mut World,
builder: &mut DispatcherBuilder<'a, 'b>
) -> Result<(), Error>
[src]
&mut self,
world: &mut World,
builder: &mut DispatcherBuilder<'a, 'b>
) -> Result<(), Error>
fn should_rebuild(&mut self, world: &World) -> bool
[src]
fn on_plan(
&mut self,
plan: &mut RenderPlan<B>,
factory: &mut Factory<B>,
world: &World
) -> Result<(), Error>
[src]
&mut self,
plan: &mut RenderPlan<B>,
factory: &mut Factory<B>,
world: &World
) -> Result<(), Error>