8 #include <glm/gtx/quaternion.hpp>
10 #include "voxelfontconstants.h"
21 void drawString(std::string text, glm::vec3 position, glm::quat orientation, FontSize size = FontSize::SIZE5x7,
float scale = 1.f, FontAlign align = FontAlign::CENTER);
23 int letterWidth(FontSize size);
24 int letterHeight(FontSize size);
31 void loadFont(
const std::string& identifier, glm::vec3 offset, std::map<
char, std::unique_ptr<Letter>> *map);
32 void loadChar(
const std::string& filename, glm::vec3 offset,
const char index, std::map<
char, std::unique_ptr<Letter>> *map);
34 std::map<char, std::unique_ptr<Letter>> m_font3x5;
35 std::map<char, std::unique_ptr<Letter>> m_font5x7;
Definition: voxelfont.h:15
Definition: voxelrenderer.h:24