Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
VoxelFont Class Reference
Collaboration diagram for VoxelFont:
[legend]

Public Member Functions

void drawString (std::string text, glm::vec3 position, glm::quat orientation, FontSize size=FontSize::SIZE5x7, float scale=1.f, FontAlign align=FontAlign::CENTER)
 
int letterWidth (FontSize size)
 
int letterHeight (FontSize size)
 

Static Public Member Functions

static VoxelFontinstance ()
 

Protected Member Functions

void loadFont (const std::string &identifier, glm::vec3 offset, std::map< char, std::unique_ptr< Letter >> *map)
 
void loadChar (const std::string &filename, glm::vec3 offset, const char index, std::map< char, std::unique_ptr< Letter >> *map)
 

Protected Attributes

std::map< char,
std::unique_ptr< Letter > > 
m_font3x5
 
std::map< char,
std::unique_ptr< Letter > > 
m_font5x7
 

Static Protected Attributes

static VoxelFonts_instance = nullptr
 

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