Struct rust_raylib::ffi::Camera2D
source · #[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: Vector2Camera offset (displacement from target)
target: Vector2Camera target (rotation and zoom origin)
rotation: c_floatCamera rotation in degrees
zoom: c_floatCamera zoom (scaling), should be 1.0f by default
Trait Implementations§
Auto Trait Implementations§
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