#include <W3DDebugDisplay.h>
Inherits DebugDisplay.
Public Member Functions | |
| W3DDebugDisplay () | |
| virtual | ~W3DDebugDisplay () |
| void | init (void) |
| Initialized the display. | |
| void | setFont (GameFont *font) |
| Set the font to render with. | |
| void | setFontWidth (Int width) |
| void | setFontHeight (Int height) |
| Set the font width. | |
Public Member Functions inherited from DebugDisplay | |
| DebugDisplay () | |
| virtual | ~DebugDisplay () |
| virtual void | printf (Char *format,...) |
| Print formatted text at current cursor position. | |
| virtual void | setCursorPos (Int x, Int y) |
| Set new cursor position. | |
| virtual Int | getCursorXPos (void) |
| Get current X position of cursor. | |
| virtual Int | getCursorYPos (void) |
| Get current Y position of cursor. | |
| virtual Int | getWidth (void) |
| Get character width of display. | |
| virtual Int | getHeight (void) |
| Get character height of display. | |
| virtual void | setTextColor (Color color) |
| set text color | |
| virtual void | setRightMargin (Int rightPos) |
| set right margin position | |
| virtual void | setLeftMargin (Int leftPos) |
| set left margin position | |
| virtual void | reset (void) |
| Reset back to default settings. | |
Public Member Functions inherited from DebugDisplayInterface | |
| virtual | ~DebugDisplayInterface () |
Protected Member Functions | |
| virtual void | drawText (Int x, Int y, Char *text) |
| Render null ternimated string at current cursor position. | |
Protected Attributes | |
| GameFont * | m_font |
| Set the font height. | |
| Int | m_fontWidth |
| Int | m_fontHeight |
| DisplayString * | m_displayString |
Protected Attributes inherited from DebugDisplay | |
| Color | m_textColor |
| Color to render text in. | |
| Int | m_xPos |
| Current X position of cursor. | |
| Int | m_yPos |
| Current Y position of cursor. | |
| Int | m_width |
| Character width of display. | |
| Int | m_height |
| Character height of display. | |
| Int | m_rightMargin |
| Right margin position. | |
| Int | m_leftMargin |
| Left margin position. | |
Additional Inherited Members | |
Public Types inherited from DebugDisplayInterface | |
| enum | Color { WHITE , BLACK , YELLOW , RED , GREEN , BLUE , NUM_COLORS } |
Definition at line 73 of file W3DDebugDisplay.h.
| W3DDebugDisplay::W3DDebugDisplay | ( | ) |
Definition at line 103 of file W3DDebugDisplay.cpp.
|
virtual |
Definition at line 113 of file W3DDebugDisplay.cpp.
Render null ternimated string at current cursor position.
Implements DebugDisplayInterface.
Definition at line 134 of file W3DDebugDisplay.cpp.
| void W3DDebugDisplay::init | ( | void | ) |
Initialized the display.
Definition at line 125 of file W3DDebugDisplay.cpp.
| void W3DDebugDisplay::setFont | ( | GameFont * | font | ) |
Set the font to render with.
Definition at line 155 of file W3DDebugDisplay.cpp.
|
inline |
Set the font width.
Definition at line 84 of file W3DDebugDisplay.h.
|
inline |
Definition at line 83 of file W3DDebugDisplay.h.
|
protected |
Definition at line 91 of file W3DDebugDisplay.h.
|
protected |
|
protected |
Definition at line 90 of file W3DDebugDisplay.h.
|
protected |
Definition at line 89 of file W3DDebugDisplay.h.