Struct storm::math::OrthographicCamera
source · [−]pub struct OrthographicCamera { /* private fields */ }
Expand description
Simple camera for orthographic projections.
Implementations
sourceimpl OrthographicCamera
impl OrthographicCamera
pub fn new(logical_size: Vector2<f32>) -> OrthographicCamera
sourcepub fn get(&self) -> &OrthographicParams
pub fn get(&self) -> &OrthographicParams
Gets an immutable reference to the transform parameters.
sourcepub fn set(&mut self) -> &mut OrthographicParams
pub fn set(&mut self) -> &mut OrthographicParams
Gets an mutable reference to the transform parameters.
sourcepub fn set_pixel_perfect(&mut self, pixel_perfect: bool)
pub fn set_pixel_perfect(&mut self, pixel_perfect: bool)
Flags pixel perfect alignment.
Auto Trait Implementations
impl RefUnwindSafe for OrthographicCamera
impl Send for OrthographicCamera
impl Sync for OrthographicCamera
impl Unpin for OrthographicCamera
impl UnwindSafe for OrthographicCamera
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more