Build type information on first use (load-time), instead of using a hardcoded list

--HG--
branch : dynamiccore2
This commit is contained in:
Bart van Strien
2016-11-13 16:38:57 +01:00
parent 452a8a877e
commit c761202486
192 changed files with 734 additions and 614 deletions
+3 -1
View File
@@ -50,6 +50,8 @@ class Font : public Object, public Volatile
{
public:
static love::Type type;
typedef std::vector<uint32> Codepoints;
enum AlignMode
@@ -235,7 +237,7 @@ private:
// map of left/right glyph pairs to horizontal kerning.
std::unordered_map<uint64, float> kerning;
FontType type;
FontType fontType;
Texture::Filter filter;
int textureX, textureY;