#include <Font.h>
Public Member Functions | |
Font () | |
Public constructor. | |
virtual | ~Font () |
Virtual destructor. | |
void | Init (Surface *pFont) |
Initializes the font. | |
void | PutText (Surface *pSurface, int x, int y, const std::string &rText) const |
Blits a string to a surface. | |
int | TextWidth (const std::string &rText) const |
Returns the width of "text" in pixels. | |
Private Attributes | |
Surface * | m_pFont |
(*** add brief description here ***) | |
int | m_char_pos [190] |
(*** add brief description here ***) |
Font | ( | ) | [inline] |
Public constructor.
virtual ~Font | ( | ) | [inline, virtual] |
Virtual destructor.
void Init | ( | Surface * | pFont | ) |
Initializes the font.
void PutText | ( | Surface * | pSurface, | |
int | x, | |||
int | y, | |||
const std::string & | rText | |||
) | const |
Blits a string to a surface.
int TextWidth | ( | const std::string & | rText | ) | const |
Returns the width of "text" in pixels.
int m_char_pos[190] [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