#ifndef FONT_HPP #define FONT_HPP #include "math.hpp" #include "texture.hpp" #include "shader.hpp" struct Character { // Size of glyph unsigned int sizeX; unsigned int sizeY; // Offset from baseline to left/top of glyph unsigned int bearingX; unsigned int bearingY; // Offset to advance to next glyph unsigned int Advance; }; struct Font{ public: unsigned int texture; Shader shader; Font(){ //Load shaders shader=Shader("shaders/text.vs","shaders/text.fs"); //Load textures texture = createTexture("font/combined.png"); } }; #endif