]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/render.cpp
check line of sight in chase ai
[blank.git] / src / graphics / render.cpp
index 2b227422a48cb3b950390d73cf152350fcf7f716..be59d2357befaa1eae6481008e8852d8ae64617d 100644 (file)
@@ -101,8 +101,8 @@ bool Font::HasGlyph(Uint16 c) const noexcept {
 }
 
 
-glm::tvec2<int> Font::TextSize(const char *text) const {
-       glm::tvec2<int> size;
+glm::ivec2 Font::TextSize(const char *text) const {
+       glm::ivec2 size;
        if (TTF_SizeUTF8(handle, text, &size.x, &size.y) != 0) {
                throw std::runtime_error(TTF_GetError());
        }