uhhhhhhhhhh yeeeeeeea
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m28s

This commit is contained in:
2024-07-16 14:19:39 -04:00
parent e261b610c2
commit abd691b648
11 changed files with 251 additions and 99 deletions

View File

@@ -1,5 +1,4 @@
#include <JGL/FontCache.h>
#include <iostream>
using namespace JGL;
@@ -37,6 +36,7 @@ unsigned int JGL::CachedFont::getFontIndex() {
return font_index;
}
//TODO make this code go faster.
CachedGlyph* JGL::CachedFont::getGlyph(char c) {
auto it = glyphs.find(c);
if (it != glyphs.end())
@@ -60,11 +60,11 @@ const GLuint* CachedFont::getTexture() {
return &texture;
}
const GLsizei CachedFont::getTextureWidth() const {
GLsizei CachedFont::getTextureWidth() const {
return texture_width;
}
const GLsizei CachedFont::getTextureHeight() const {
GLsizei CachedFont::getTextureHeight() const {
return texture_height;
}