blob: 1dc2db275bf5d695a902be8cefad3cd1f20b586b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use ggez::nalgebra::Point2;
pub struct Camera {
pub draw: Point2<f32>,
}
impl Camera {
pub fn new(draw: Point2<f32>) -> Camera {
Camera { draw }
}
pub fn give_center(&mut self, center: Point2<f32>) {}
}
impl Default for Camera {
fn default() -> Camera {
Camera::new(Point2::new(0.0, 0.0))
}
}
|