#pragma once #include "resource.hpp" #include #include #include namespace resources { class Font : public Resource { public: struct Character { unsigned int textureID; // openGL texture handle glm::ivec2 size; glm::ivec2 bearing; // offset from baseline to top-left of glyph long advance; // offset to the next glyph }; Font(const std::filesystem::path& resPath); ~Font() override; Character getChar(char c); private: std::map m_characters; }; }