diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-03 00:08:47 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-03 00:08:47 +0000 |
commit | 94311f9c4e82b7475802b1934cc0c5b243e0cd2f (patch) | |
tree | 5ef23f6c1151917eb723b67c262da0168e42343c /lib | |
parent | Our own matrix rotations (diff) | |
download | ilt-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')
-rw-r--r-- | lib/location.hpp | 14 |
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 |