diff options
Diffstat (limited to 'Runtime/GUI/TextGenerator.cpp')
-rw-r--r-- | Runtime/GUI/TextGenerator.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Runtime/GUI/TextGenerator.cpp b/Runtime/GUI/TextGenerator.cpp index 802146c..6841c4e 100644 --- a/Runtime/GUI/TextGenerator.cpp +++ b/Runtime/GUI/TextGenerator.cpp @@ -1,3 +1,19 @@ +#include "freetype.h" #include "TextGenerator.h" +#include "../Math/Math.h" +using namespace character; +//https://learnopengl.com/In-Practice/Text-Rendering + +struct Character { + unsigned int textureID; // ID handle of the glyph texture + Internal::Vector2 size; // Size of glyph + Internal::Vector2 bearing; // Offset from baseline to left/top of glyph + unsigned int advance; // Offset to advance to next glyph +}; + +hash TextGenerator::GetCharacterHash(unicode unicode, int pixelSize) +{ + +}
\ No newline at end of file |