Struct specs_camera::Camera2D
[−]
[src]
pub struct Camera2D<T> where
T: 'static + Sync + Send + Copy + Float, { /* fields omitted */ }
Methods
impl<T> Camera2D<T> where
T: 'static + Sync + Send + Copy + Float,
[src]
T: 'static + Sync + Send + Copy + Float,
fn new() -> Self
[src]
fn ortho_size(&self) -> T
[src]
fn set_ortho_size(&mut self, ortho_size: T)
[src]
fn projection(&self) -> &[T; 6]
[src]
fn view(&self) -> &[T; 6]
[src]
fn update_view(&mut self, matrix: &[T; 6])
[src]
fn update_projection(&mut self, width: usize, height: usize)
[src]
Trait Implementations
impl<T> Component for Camera2D<T> where
T: 'static + Sync + Send + Copy + Float,
[src]
T: 'static + Sync + Send + Copy + Float,
type Storage = VecStorage<Self>
Associated storage type for this component.
impl<T> Default for Camera2D<T> where
T: 'static + Sync + Send + Copy + Float,
[src]
T: 'static + Sync + Send + Copy + Float,