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