summaryrefslogtreecommitdiff
path: root/lib/location.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-03 00:08:47 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-03 00:08:47 +0000
commit94311f9c4e82b7475802b1934cc0c5b243e0cd2f (patch)
tree5ef23f6c1151917eb723b67c262da0168e42343c /lib/location.hpp
parentOur own matrix rotations (diff)
downloadilt-94311f9c4e82b7475802b1934cc0c5b243e0cd2f.tar.bz2
ilt-94311f9c4e82b7475802b1934cc0c5b243e0cd2f.tar.xz
ilt-94311f9c4e82b7475802b1934cc0c5b243e0cd2f.zip
Replace Transform with Location
Simpler, unbinds the transformation matrices for location, now done just in the shader.
Diffstat (limited to 'lib/location.hpp')
-rw-r--r--lib/location.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/location.hpp b/lib/location.hpp
new file mode 100644
index 0000000..b019b7a
--- /dev/null
+++ b/lib/location.hpp
@@ -0,0 +1,14 @@
+#ifndef LOCATION_H
+#define LOCATION_H
+
+#include <glm/glm.hpp>
+
+class Location {
+public:
+ explicit Location(glm::vec3 pos = {}, glm::vec3 rot = {}) : pos {pos}, rot {rot} { }
+
+ glm::vec3 pos;
+ glm::vec3 rot;
+};
+
+#endif