Symphony Of Empires
Eng3D::FontSDF Struct Reference

#include <font_sdf.hpp>

Public Member Functions

 FontSDF (const std::string &filename)
 
std::unique_ptr< Eng3D::Label3Dgen_text (const std::string &text, glm::vec2 pmin, glm::vec2 pmax, glm::vec2 p0, float width)
 
void draw (const std::vector< std::unique_ptr< Label3D >> &labels, const Eng3D::Camera &camera, bool sphere)
 

Detailed Description

Definition at line 64 of file font_sdf.hpp.

Constructor & Destructor Documentation

◆ FontSDF()

Eng3D::FontSDF::FontSDF ( const std::string &  filename)

Definition at line 49 of file font_sdf.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ draw()

void Eng3D::FontSDF::draw ( const std::vector< std::unique_ptr< Label3D >> &  labels,
const Eng3D::Camera camera,
bool  sphere 
)

Definition at line 167 of file font_sdf.cpp.

Here is the call graph for this function:

◆ gen_text()

std::unique_ptr< Eng3D::Label3D > Eng3D::FontSDF::gen_text ( const std::string &  text,
glm::vec2  pmin,
glm::vec2  pmax,
glm::vec2  p0,
float  width 
)

Definition at line 105 of file font_sdf.cpp.

Here is the call graph for this function:

The documentation for this struct was generated from the following files: