]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/Text.hpp
glm backwards compatibility
[blank.git] / src / ui / Text.hpp
index 84a6190999f89f4d2d340dd6ba4b64d1e1eb70b3..591740a33c0260dfa3ce5a47b610adb630edc271 100644 (file)
@@ -2,11 +2,11 @@
 #define BLANK_UI_TEXT_HPP_
 
 #include "../graphics/align.hpp"
+#include "../graphics/glm.hpp"
 #include "../graphics/Texture.hpp"
 #include "../graphics/SpriteMesh.hpp"
 
 #include <string>
-#include <glm/glm.hpp>
 
 
 namespace blank {
@@ -24,7 +24,8 @@ public:
                Set(f, s.c_str());
        }
 
-       void Pivot(Gravity p) {
+       Gravity Pivot() const noexcept { return pivot; }
+       void Pivot(Gravity p) noexcept {
                pivot = p;
                dirty = true;
        }