uhhhhhhhhhh yeeeeeeea
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m28s
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m28s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user