pub struct Camera2D { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Camera for Camera2D
impl Camera for Camera2D
fn position(&self) -> &Vec3
fn set_position(&mut self, position: Vec3)
fn set_width(&mut self, width: f32)
fn set_height(&mut self, height: f32)
fn projection(&self) -> Mat4
fn view(&self) -> Mat4
fn move_camera(&mut self, dir: Movement, dt: f32)
fn set_size(&mut self, width: f32, height: f32)
impl Copy for Camera2D
impl StructuralPartialEq for Camera2D
Auto Trait Implementations§
impl Freeze for Camera2D
impl RefUnwindSafe for Camera2D
impl Send for Camera2D
impl Sync for Camera2D
impl Unpin for Camera2D
impl UnwindSafe for Camera2D
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more