#include <TrueTypeFont.h>
Public Member Functions | |
| TrueTypeFont () | |
| Public constructor. | |
| virtual | ~TrueTypeFont () |
| Virtual destructor. | |
| int | Open (const std::string &rPath, const std::string &rName, int pointSize) |
| Opens font. | |
| int | Open (const std::string &rName, int pointSize) |
| Opens font. | |
| void | Close () |
| Closes font. | |
| void | RenderText (Surface &rSurface, const std::string &rText) |
| Renders text. | |
| void | GetTextSize (const std::string &rText, int &rWidth, int &rHeight) const |
| Gets text size. | |
Static Public Member Functions | |
| static void | Init () |
| Inits library. | |
| static void | Quit () |
| Quits library. | |
Private Attributes | |
| TTF_Font * | m_pFont |
| (*** add brief description here ***) | |
| TrueTypeFont | ( | ) |
Public constructor.
| ~TrueTypeFont | ( | ) | [virtual] |
Virtual destructor.
| void Init | ( | ) | [static] |
Inits library.
| void Quit | ( | ) | [static] |
Quits library.
| int Open | ( | const std::string & | rPath, | |
| const std::string & | rName, | |||
| int | pointSize | |||
| ) |
Opens font.
| int Open | ( | const std::string & | rName, | |
| int | pointSize | |||
| ) |
Opens font.
| void Close | ( | ) |
Closes font.
| void RenderText | ( | Surface & | rSurface, | |
| const std::string & | rText | |||
| ) |
Renders text.
| void GetTextSize | ( | const std::string & | rText, | |
| int & | rWidth, | |||
| int & | rHeight | |||
| ) | const |
Gets text size.
TTF_Font* m_pFont [private] |
(*** add brief description here ***)
Navigation
Home Page
Screen Shots
Developers
Documentation
Doxygen
Namespace List
Class List
Class Hierarchy
File List
Todo List
Links
SDL Library
License
SourceForge Project
Forums
Download
Regimental Command
Copyright © 2008
Randi J. Relander