Struct specs_camera::CameraSystem [−][src]
pub struct CameraSystem<T> { /* fields omitted */ }
Methods
impl<T> CameraSystem<T>
[src]
impl<T> CameraSystem<T>
impl<T> CameraSystem<T>
[src]
impl<T> CameraSystem<T>
Trait Implementations
impl<T> Default for CameraSystem<T>
[src]
impl<T> Default for CameraSystem<T>
impl<'system, T> System<'system> for CameraSystem<T> where
T: 'static + Send + Sync + Float + FromPrimitive,
&'a T: Sub<&'b T, Output = T> + Add<&'b T, Output = T> + Div<&'b T, Output = T> + Mul<&'b T, Output = T> + Neg<Output = T>,
[src]
impl<'system, T> System<'system> for CameraSystem<T> where
T: 'static + Send + Sync + Float + FromPrimitive,
&'a T: Sub<&'b T, Output = T> + Add<&'b T, Output = T> + Div<&'b T, Output = T> + Mul<&'b T, Output = T> + Neg<Output = T>,
type SystemData = (Read<'system, ScreenSize>, ReadStorage<'system, Transform2D<T>>, ReadStorage<'system, Transform3D<T>>, WriteStorage<'system, Camera2D<T>>, WriteStorage<'system, Camera3D<T>>)
The resource bundle required to execute this system. Read more
fn run(
&mut self,
(size, transforms_2d, transforms_3d, cameras_2d, cameras_3d): Self::SystemData
)
[src]
fn run(
&mut self,
(size, transforms_2d, transforms_3d, cameras_2d, cameras_3d): Self::SystemData
)
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Returns 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<T> Send for CameraSystem<T> where
T: Send,
impl<T> Send for CameraSystem<T> where
T: Send,
impl<T> Sync for CameraSystem<T> where
T: Sync,
impl<T> Sync for CameraSystem<T> where
T: Sync,