summaryrefslogtreecommitdiff
path: root/src/camera.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-01-30 21:11:12 +0100
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-01-30 21:11:12 +0100
commit260f05025631031b7cc4904805d5017feaf53eda (patch)
treed5a723bb7bbbc9f8b598712723fe3d8290c0a54c /src/camera.h
initial commit
Diffstat (limited to 'src/camera.h')
-rw-r--r--src/camera.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/camera.h b/src/camera.h
new file mode 100644
index 0000000..c6e4093
--- /dev/null
+++ b/src/camera.h
@@ -0,0 +1,19 @@
+/*
+* BSD 2-Clause “Simplified” License
+* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com
+* All rights reserved.
+*/
+
+#ifndef INCLUDE_CAMERA
+#define INCLUDE_CAMERA
+
+typedef struct t_camera
+{
+ float32 x;
+ float32 y;
+ float32 rotation;
+} camera;
+
+void camera_apply_transformations(platform_window *window, camera *camera);
+
+#endif \ No newline at end of file