From 94311f9c4e82b7475802b1934cc0c5b243e0cd2f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 3 Mar 2021 00:08:47 +0000 Subject: Replace Transform with Location Simpler, unbinds the transformation matrices for location, now done just in the shader. --- lib/location.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/location.hpp (limited to 'lib/location.hpp') 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 + +class Location { +public: + explicit Location(glm::vec3 pos = {}, glm::vec3 rot = {}) : pos {pos}, rot {rot} { } + + glm::vec3 pos; + glm::vec3 rot; +}; + +#endif -- cgit v1.2.3