blob: 6841c4e896120d63fd53a9e316bf789a8da8ca22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
{
}
|