torque Torque Game Engine Documentation
TGE Version 1.5.2

DebugView Class Reference

#include <debugView.h>

Inheritance diagram for DebugView:

Inheritance graph
[legend]

Detailed Description

Helper class to render a HUD debug display.


Public Member Functions

 DECLARE_CONOBJECT (DebugView)
 DebugView ()
void addLine (const Point3F &start, const Point3F &end, const ColorF &color)
void clearLines ()
void setTextLine (int line, const char *text, ColorF *color)
void clearTextLine (int line=-1)
void onRender (Point2I offset, const RectI &updateRect)
 Called when this control is to render itself.

Private Types

enum  {
  MaxTextLines = 64,
  MaxTextLineLength = 255
}
typedef GuiTextCtrl Parent

Private Attributes

char mTextLines [MaxTextLines][MaxTextLineLength+1]
ColorF mTextColors [MaxTextLines]
Vector< DebugLinemLines

Data Structures

struct  DebugLine


Member Typedef Documentation

typedef GuiTextCtrl DebugView::Parent [private]

Reimplemented from GuiTextCtrl.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
MaxTextLines 
MaxTextLineLength 


Constructor & Destructor Documentation

DebugView::DebugView (  ) 


Member Function Documentation

DebugView::DECLARE_CONOBJECT ( DebugView   ) 

void DebugView::addLine ( const Point3F start,
const Point3F end,
const ColorF color 
)

void DebugView::clearLines (  ) 

void DebugView::setTextLine ( int  line,
const char *  text,
ColorF color 
)

void DebugView::clearTextLine ( int  line = -1  ) 

void DebugView::onRender ( Point2I  offset,
const RectI updateRect 
) [virtual]

Called when this control is to render itself.

Parameters:
offset The location this control is to begin rendering
updateRect The screen area this control has drawing access to

Reimplemented from GuiTextCtrl.


Field Documentation

char DebugView::mTextLines[MaxTextLines][MaxTextLineLength+1] [private]

ColorF DebugView::mTextColors[MaxTextLines] [private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen