28 #include <unordered_map>
32 #include <glm/vec3.hpp>
34 #include "eng3d/rectangle.hpp"
61 std::unique_ptr<Eng3D::TriangleList> triangles;
65 FontSDF(
const std::string& filename);
66 std::unique_ptr<Eng3D::Label3D>
gen_text(
const std::string& text, glm::vec2 pmin, glm::vec2 pmax, glm::vec2 p0,
float width);
67 void draw(
const std::vector<std::unique_ptr<Label3D>>& labels,
const Eng3D::Camera& camera,
bool sphere);
69 std::unordered_map<uint32_t, Glyph> unicode_map;
70 std::shared_ptr<Eng3D::Texture> atlas;
71 std::unique_ptr<Eng3D::OpenGL::Program> sphere_shader;
72 std::unique_ptr<Eng3D::OpenGL::Program> flat_shader;
void draw(const std::vector< std::unique_ptr< Label3D >> &labels, const Eng3D::Camera &camera, bool sphere)
FontSDF(const std::string &filename)
std::unique_ptr< Eng3D::Label3D > gen_text(const std::string &text, glm::vec2 pmin, glm::vec2 pmax, glm::vec2 p0, float width)
Eng3D::Rectangle plane_bounds
Eng3D::Rectangle atlas_bounds
Label3D(Eng3D::TriangleList *triangles, float size, glm::vec3 center)