From: Andy Belle-Isle Date: Sat, 14 Sep 2019 05:10:41 +0000 (-0400) Subject: Added texture size and offset data X-Git-Tag: v0.2-alpha~16 X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=d4d9e0d35a1609c72ea65df95e9c3ce5706e221f;p=clyne%2Fgamedev2.git Added texture size and offset data --- diff --git a/src/texture.hpp b/src/texture.hpp index 25fed54..8cfd68c 100644 --- a/src/texture.hpp +++ b/src/texture.hpp @@ -24,6 +24,7 @@ #include #include +#include #include @@ -34,6 +35,10 @@ public: GLuint tex = 0; int width; int height; + + glm::vec2 offset = glm::vec2(0); + glm::vec2 offsetSize = glm::vec2(1); + Texture() {}; Texture(std::string); };