Photon 0.0.2 Simple Open Source 2D Game API |
FontSimple OO wrapper around a TrueType font that can be drawn to textures and rendered via OpenGL. Since Font is a child of ResourceManaged, all memory management is taken care of. Operators
Summary
setColor
Set draw color of the font. Parameters
getColor
Get draw color of the font. ReturnsCurrently set Color to shade font glyphs when drawn. addResource
Define a new named resource. (Ex. Image::addResource(“monkey”,”images/monkey.png”) would make it so that any attempts to load “monkey” would load the image images/monkey.png) Parameters
|
Default constructor, initalizes internal state of Font.
Font()
Opens an TrueType font.
void open( const std:: string & name )
Determine status of Font.
bool isValid() const
Set draw color of the font.
void setColor( const Color & color )
Get draw color of the font.
Color getColor() const
Define a new named resource.
static void addResource( const std:: string & name, const std:: string & path, uint size )