#[repr(C)]pub struct Camera2D {
pub offset: Vector2,
pub target: Vector2,
pub rotation: c_float,
pub zoom: c_float,
}
Expand description
Camera2D, defines position/orientation in 2d space
Fields§
§offset: Vector2
Camera offset (displacement from target)
target: Vector2
Camera target (rotation and zoom origin)
rotation: c_float
Camera rotation in degrees
zoom: c_float
Camera zoom (scaling), should be 1.0f by default
Trait Implementations§
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