#ifndef Font_h__ #define Font_h__ #include #include FT_FREETYPE_H #include FT_GLYPH_H #include #include #include "../OpenGL.h" #include "../GLM.h" #include "../Core/ResourceManager.h" class Font : public Resource { friend class ResourceManager; private: Font(std::string path); public: struct Character { GLuint TextureID; // ID handle of the glyph texture glm::ivec2 Size; // Size of glyph glm::ivec2 Bearing; // Offset from baseline to left/top of glyph GLuint Advance; // Offset to advance to next glyph }; int FontSize = 16; ~Font(); std::map m_Characters; }; #endif