summaryrefslogtreecommitdiff
path: root/src/camera.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera.rs')
-rw-r--r--src/camera.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/camera.rs b/src/camera.rs
new file mode 100644
index 0000000..1dc2db2
--- /dev/null
+++ b/src/camera.rs
@@ -0,0 +1,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))
+ }
+}