#include <FontGl.h>
Inheritance diagram for FontGl:
Public Member Functions | |
void | prepareDrawing () |
void | setScreenSize (float virtualWidth, float virtualHeight, int displayWidth, int displayHeight) |
void | loadFontGfx (const string &fileName, const string &fontDefinition="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~") |
void | printChar (const char data, float x, float y, float zoom) |
void | printString (const string &value, float x, float y, float zoom) |
float | getWidth (const string &data, float zoom) |
float | getHeight (float zoom) |
void | unloadFontGfx () |
Definition at line 13 of file FontGl.h.
|
Returns the height of the font at zoom factor zoom. Implements Font. Definition at line 142 of file FontGl.cpp. |
|
Returns the width of a string data at zoom factor zoom. Implements Font. Definition at line 130 of file FontGl.cpp. |
|
Loads a SFont file. fileName is the name (may include path) of the SFont. fontDefinition is a string containing the letters in the SFont. Definition at line 48 of file FontGl.cpp. |
|
Prepares the display for drawing of letters, you may have to prepare the display for drawing other things after this cal. Implements Font. Definition at line 23 of file FontGl.cpp. |
|
Writes a character data at x,y with the given zoom factor. prepareDrawing must have been called first. Implements Font. Definition at line 85 of file FontGl.cpp. |
|
Writes a string value at x,y with the given zoom factor. prepareDrawing must have been called first. Implements Font. Definition at line 114 of file FontGl.cpp. |
|
Sets display size hints for the font. the virtualWidth and virtualHeight defines the range of coordinates regardless of actual display size, coordinates and font size will be scaled to fit the actual display size. displayWidth and displayHeight are the actual display size. Definition at line 76 of file FontGl.cpp. |
|
Frees the OpenGL texture memory used by the font, call this before reloading the font. Definition at line 147 of file FontGl.cpp. |