Galactica/src/game/camera.rs
2023-12-25 16:22:44 -08:00

12 lines
198 B
Rust

use cgmath::Point2;
#[derive(Debug, Clone, Copy)]
pub struct Camera {
/// Camera center
pub pos: Point2<f32>,
/// Camera zoom
/// (How many game units tall is the viewport?)
pub zoom: f32,
}