X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FTexture.hpp;h=107d259b81d595e83a82e64385a478ee497612d0;hb=fd08d1defb5c42d2847a9001e1921898e3d526bf;hp=6ad7eb995448287efadd4a258efa3cb01a8e2ed5;hpb=be413456f57da06e918ae7bf4c4f35e5198ff7ce;p=blobs.git diff --git a/src/graphics/Texture.hpp b/src/graphics/Texture.hpp index 6ad7eb9..107d259 100644 --- a/src/graphics/Texture.hpp +++ b/src/graphics/Texture.hpp @@ -29,6 +29,7 @@ public: public: GLsizei Width() const noexcept { return width; } GLsizei Height() const noexcept { return height; } + glm::vec2 Size() const noexcept { return glm::vec2(width, height); } void Data(const SDL_Surface &, bool pad2 = true) noexcept; void Data(GLsizei w, GLsizei h, const Format &, GLvoid *data) noexcept;