Struct amethyst_renderer::VisibilitySortingSystem [−][src]
pub struct VisibilitySortingSystem { /* fields omitted */ }Determine what entities are visible to the camera, and which are not. Will also sort transparent entities back to front based on distance from camera.
Note that this should run after GlobalTransform has been updated for the current frame, and
before rendering occurs.
Methods
impl VisibilitySortingSystem[src]
impl VisibilitySortingSystemTrait Implementations
impl<'a> System<'a> for VisibilitySortingSystem[src]
impl<'a> System<'a> for VisibilitySortingSystemtype SystemData = (Entities<'a>, Write<'a, Visibility>, Option<Read<'a, ActiveCamera>>, ReadStorage<'a, Camera>, ReadStorage<'a, Transparent>, ReadStorage<'a, GlobalTransform>)
The resource bundle required to execute this system. Read more
fn run(
&mut self,
(entities, visibility, active, camera, transparent, global): Self::SystemData
)[src]
fn run(
&mut self,
(entities, visibility, active, camera, transparent, global): Self::SystemData
)Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTimeReturns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>Return the accessor from the [SystemData].
fn setup(&mut self, res: &mut Resources)
fn setup(&mut self, res: &mut Resources)Sets up the Resources using Self::SystemData::setup.
Auto Trait Implementations
impl Send for VisibilitySortingSystem
impl Send for VisibilitySortingSystemimpl Sync for VisibilitySortingSystem
impl Sync for VisibilitySortingSystem