use crate::math::Vector2;
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct Camera2D {
pub offset: Vector2, pub target: Vector2, pub rotation: f32, pub zoom: f32, }
impl Default for Camera2D {
fn default() -> Self {
Self {
offset: Vector2 { x: 0.0, y: 0.0 },
target: Vector2 { x: 0.0, y: 0.0 },
rotation: 0.0,
zoom: 1.0,
}
}
}