Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
W3DDebugDisplay Class Reference

#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

GameFontm_font
 Set the font height.
 
Int m_fontWidth
 
Int m_fontHeight
 
DisplayStringm_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
}
 

Detailed Description

Definition at line 73 of file W3DDebugDisplay.h.

Constructor & Destructor Documentation

◆ W3DDebugDisplay()

W3DDebugDisplay::W3DDebugDisplay ( )

Definition at line 103 of file W3DDebugDisplay.cpp.

◆ ~W3DDebugDisplay()

W3DDebugDisplay::~W3DDebugDisplay ( )
virtual

Definition at line 113 of file W3DDebugDisplay.cpp.

Member Function Documentation

◆ drawText()

void W3DDebugDisplay::drawText ( Int x,
Int y,
Char * text )
protectedvirtual

Render null ternimated string at current cursor position.

Implements DebugDisplayInterface.

Definition at line 134 of file W3DDebugDisplay.cpp.

◆ init()

void W3DDebugDisplay::init ( void )

Initialized the display.

Definition at line 125 of file W3DDebugDisplay.cpp.

◆ setFont()

void W3DDebugDisplay::setFont ( GameFont * font)

Set the font to render with.

Definition at line 155 of file W3DDebugDisplay.cpp.

◆ setFontHeight()

void W3DDebugDisplay::setFontHeight ( Int height)
inline

Set the font width.

Definition at line 84 of file W3DDebugDisplay.h.

◆ setFontWidth()

void W3DDebugDisplay::setFontWidth ( Int width)
inline

Definition at line 83 of file W3DDebugDisplay.h.

Member Data Documentation

◆ m_displayString

DisplayString* W3DDebugDisplay::m_displayString
protected

Definition at line 91 of file W3DDebugDisplay.h.

◆ m_font

GameFont* W3DDebugDisplay::m_font
protected

Set the font height.

Font to render text with

Definition at line 88 of file W3DDebugDisplay.h.

◆ m_fontHeight

Int W3DDebugDisplay::m_fontHeight
protected

Definition at line 90 of file W3DDebugDisplay.h.

◆ m_fontWidth

Int W3DDebugDisplay::m_fontWidth
protected

Definition at line 89 of file W3DDebugDisplay.h.


The documentation for this class was generated from the following files: