DebugDrawer Class Reference#include <debugDraw.h>
Inheritance diagram for DebugDrawer:
[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 DebugDrawer * | get () |
| 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< DebugPrim > | mPrimChunker |
| DebugPrim * | mHead |
| bool | isFrozen |
| bool | shouldToggleFreeze |
| bool | isDrawing |
| GFXStateBlockRef | mRenderZOffSB |
| GFXStateBlockRef | mRenderZOnSB |
| Resource< GFont > | mFont |
Static Private Attributes |
| static DebugDrawer * | sgDebugDrawer |
Classes |
| struct | DebugPrim |
Member Typedef Documentation
Member Enumeration Documentation
Set the TTL for the last item we entered.
..
Primitives default to lasting one frame (ie, ttl=0) - Enumerator:
-
Constructor & Destructor Documentation
| DebugDrawer::DebugDrawer |
( |
|
) |
|
| DebugDrawer::~DebugDrawer |
( |
|
) |
|
Member Function Documentation
| 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::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
|