GUInity
Public Member Functions | List of all members
Font Class Reference

#include <Font.hpp>

Inheritance diagram for Font:
Asset

Public Member Functions

 Font (shared_ptr< Texture > fontTexture, map< char, LetterFontUV > charUVMap, int fontSize)
 
virtual ~Font ()
 
shared_ptr< TexturegetFontTexture ()
 
int getFontSize ()
 
map< char, LetterFontUVgetCharUVMap ()
 
LetterFontUV getCharDesc (char c)
 
- Public Member Functions inherited from Asset
 Asset ()
 
virtual ~Asset ()
 
void setAssetID (unsigned int newAssetID)
 
unsigned int getAssetID () const
 
string getPath ()
 
void setPath (string newPath)
 
void setName (string name)
 
string getName ()
 
void setCRC (int crc)
 
int setCRC ()
 

Detailed Description

Font is an Asset. It holds the information of the font size, the available characters and their UV mapping to the corresponding Texture

Constructor & Destructor Documentation

Font::Font ( shared_ptr< Texture fontTexture,
map< char, LetterFontUV charUVMap,
int  fontSize 
)

Constructor from a Texture, a map of available chars and their UVMapping and the font size.

virtual Font::~Font ( )
inlinevirtual

Default Destructor. Virtual cause it's children class

Member Function Documentation

LetterFontUV Font::getCharDesc ( char  c)

Returns the LetterFontUV of a char in this font

map< char, LetterFontUV > Font::getCharUVMap ( )

charUVMap getter

int Font::getFontSize ( )

fontSize getter

shared_ptr< Texture > Font::getFontTexture ( )

fontTexture getter


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