[][src]Struct specs_camera::Camera3D

pub struct Camera3D<T> { /* fields omitted */ }

Methods

impl<T> Camera3D<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]

pub fn new() -> Self[src]

pub fn is_dirty(&self) -> bool[src]

pub fn width(&self) -> usize[src]

pub fn height(&self) -> usize[src]

pub fn size(&self) -> (usize, usize)[src]

pub fn with_size(self, width: usize, height: usize) -> Self[src]

pub fn set_size(&mut self, width: usize, height: usize) -> &mut Self[src]

pub fn fov(&self) -> T[src]

pub fn with_fov(self, fov: T) -> Self[src]

pub fn set_fov(&mut self, fov: T) -> &mut Self[src]

pub fn near(&self) -> T[src]

pub fn with_near(self, near: T) -> Self[src]

pub fn set_near(&mut self, near: T) -> &mut Self[src]

pub fn far(&self) -> T[src]

pub fn with_far(self, far: T) -> Self[src]

pub fn set_far(&mut self, far: T) -> &mut Self[src]

pub fn ortho_size(&self) -> T[src]

pub fn with_ortho_size(self, ortho_size: T) -> Self[src]

pub fn set_ortho_size(&mut self, ortho_size: T) -> &mut Self[src]

pub fn ortho_mode(&self) -> bool[src]

pub fn with_ortho_mode(self, ortho_mode: bool) -> Self[src]

pub fn set_ortho_mode(&mut self, ortho_mode: bool) -> &mut Self[src]

pub fn projection(&self) -> &[T; 16][src]

pub fn view(&self) -> &[T; 16][src]

pub fn update_view(&mut self, matrix: &[T; 16])[src]

pub fn update_projection(&mut self, force: bool)[src]

Trait Implementations

impl<T> Default for Camera3D<T> where
    T: Float + FromPrimitive
[src]

impl<T> Debug for Camera3D<T> where
    T: Debug
[src]

impl<T> Serialize for Camera3D<T> where
    T: Serialize
[src]

impl<'de, T> Deserialize<'de> for Camera3D<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Component for Camera3D<T> where
    T: 'static + Sync + Send
[src]

type Storage = VecStorage<Self>

Associated storage type for this component.

Auto Trait Implementations

impl<T> Send for Camera3D<T> where
    T: Send

impl<T> Unpin for Camera3D<T> where
    T: Unpin

impl<T> Sync for Camera3D<T> where
    T: Sync

impl<T> UnwindSafe for Camera3D<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Camera3D<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> TryDefault for T where
    T: Default
[src]

fn unwrap_default() -> Self[src]

Calls try_default and panics on an error case.

impl<T> Any for T where
    T: Any

impl<T> Event for T where
    T: Send + Sync + 'static,