]> git.localhorst.tv Git - blobs.git/blobdiff - src/graphics/Texture.hpp
basic info box
[blobs.git] / src / graphics / Texture.hpp
index 6ad7eb995448287efadd4a258efa3cb01a8e2ed5..107d259b81d595e83a82e64385a478ee497612d0 100644 (file)
@@ -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;