DebugDrawer Class Reference

#include <debugDraw.h>

Inheritance diagram for DebugDrawer:

Inheritance graph
[legend]
List of all members.

ddrawmeth Debug Draw Methods

enum  { DD_INFINITE = U32_MAX }
 Set the TTL for the last item we entered. More...
void drawBox (const Point3F &a, const Point3F &b, const ColorF &color=ColorF(1.0f, 1.0f, 1.0f))
void drawLine (const Point3F &a, const Point3F &b, const ColorF &color=ColorF(1.0f, 1.0f, 1.0f))
void drawTri (const Point3F &a, const Point3F &b, const Point3F &c, const ColorF &color=ColorF(1.0f, 1.0f, 1.0f))
void drawFrustum (const Frustum &f, const ColorF &color=ColorF(1.0f, 1.0f, 1.0f))
void drawText (const Point3F &pos, const String &text, const ColorF &color=ColorF(1.0f, 1.0f, 1.0f))
void setLastTTL (U32 ms)
void setLastZTest (bool enabled)
 Disable/enable z testing on the last primitive.

Public Member Functions

 DECLARE_CONOBJECT (DebugDrawer)
 DebugDrawer ()
 ~DebugDrawer ()
void render ()
 Called globally to render debug draw state. Also does state updates.
void toggleFreeze ()
void toggleDrawing ()

Static Public Member Functions

static DebugDrawerget ()
static void init ()
 Called at engine init to set up the global debug draw object.

Private Types

typedef SimObject Parent

Private Member Functions

void setupStateBlocks ()

Private Attributes

FreeListChunker< DebugPrimmPrimChunker
DebugPrimmHead
bool isFrozen
bool shouldToggleFreeze
bool isDrawing
GFXStateBlockRef mRenderZOffSB
GFXStateBlockRef mRenderZOnSB
Resource< GFontmFont

Static Private Attributes

static DebugDrawersgDebugDrawer

Classes

struct  DebugPrim

Member Typedef Documentation

typedef SimObject DebugDrawer::Parent [private]

Reimplemented from SimObject.


Member Enumeration Documentation

anonymous enum

Set the TTL for the last item we entered.

..

Primitives default to lasting one frame (ie, ttl=0)

Enumerator:
DD_INFINITE 


Constructor & Destructor Documentation

DebugDrawer::DebugDrawer (  ) 

DebugDrawer::~DebugDrawer (  ) 


Member Function Documentation

DebugDrawer::DECLARE_CONOBJECT ( DebugDrawer   ) 

static DebugDrawer* DebugDrawer::get (  )  [static]

static void DebugDrawer::init (  )  [static]

Called at engine init to set up the global debug draw object.

void DebugDrawer::render (  ) 

Called globally to render debug draw state. Also does state updates.

void DebugDrawer::toggleFreeze (  )  [inline]

void DebugDrawer::toggleDrawing (  )  [inline]

void DebugDrawer::drawBox ( const Point3F a,
const Point3F b,
const ColorF color = ColorF(1.0f, 1.0f, 1.0f) 
)

void DebugDrawer::drawLine ( const Point3F a,
const Point3F b,
const ColorF color = ColorF(1.0f, 1.0f, 1.0f) 
)

void DebugDrawer::drawTri ( const Point3F a,
const Point3F b,
const Point3F c,
const ColorF color = ColorF(1.0f, 1.0f, 1.0f) 
)

void DebugDrawer::drawFrustum ( const Frustum f,
const ColorF color = ColorF(1.0f, 1.0f, 1.0f) 
)

void DebugDrawer::drawText ( const Point3F pos,
const String text,
const ColorF color = ColorF(1.0f, 1.0f, 1.0f) 
)

void DebugDrawer::setLastTTL ( U32  ms  ) 

void DebugDrawer::setLastZTest ( bool  enabled  ) 

Disable/enable z testing on the last primitive.

Primitives default to z testing on.

void DebugDrawer::setupStateBlocks (  )  [private]


Member Data Documentation