MezzanineEngine 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Mezzanine::debug::InternalDebugDrawer Class Reference

This is used to draw wireframse for the Physics subsystem. More...

+ Inheritance diagram for Mezzanine::debug::InternalDebugDrawer:
+ Collaboration diagram for Mezzanine::debug::InternalDebugDrawer:

Public Member Functions

 InternalDebugDrawer ()
 Basic Constructor. More...
 
virtual ~InternalDebugDrawer ()
 Destructor. More...
 
virtual void draw3dText (const btVector3 &location, const char *textString)
 Currently Unused. More...
 
virtual void drawContactPoint (const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color)
 Currently Unused. More...
 
virtual void drawLine (const btVector3 &from, const btVector3 &to, const btVector3 &color)
 This will prepare a line segment for being drawn. More...
 
virtual void FinalizeUpdate ()
 Copies all the line data to render buffers so they can be seen on screen. More...
 
virtual int getDebugMode () const
 This will return the current debug mode. More...
 
virtual void PrepareForUpdate ()
 Clears data as necessary for updating debug geometry. More...
 
virtual void reportErrorWarning (const char *warningString)
 Used by the physics subsystem to report errors using the renderer. More...
 
virtual void setDebugMode (int debugMode)
 This is used to decide how much the debug render should draw. More...
 

Detailed Description

This is used to draw wireframse for the Physics subsystem.

Definition at line 104 of file physicsmanager.cpp.

Constructor & Destructor Documentation

Mezzanine::debug::InternalDebugDrawer::InternalDebugDrawer ( )

Basic Constructor.

Definition at line 173 of file physicsmanager.cpp.

Mezzanine::debug::InternalDebugDrawer::~InternalDebugDrawer ( )
virtual

Destructor.

Definition at line 179 of file physicsmanager.cpp.

Member Function Documentation

void Mezzanine::debug::InternalDebugDrawer::draw3dText ( const btVector3 &  location,
const char *  textString 
)
virtual

Currently Unused.

Currently Unused

Parameters
locationCurrently Unused
textStringCurrently Unused

Definition at line 208 of file physicsmanager.cpp.

void Mezzanine::debug::InternalDebugDrawer::drawContactPoint ( const btVector3 &  PointOnB,
const btVector3 &  normalOnB,
btScalar  distance,
int  lifeTime,
const btVector3 &  color 
)
virtual

Currently Unused.

Currently Unused

Parameters
PointOnBCurrently Unused
normalOnBCurrently Unused
distanceCurrently Unused
lifeTimeCurrently Unused
colorCurrently Unused

Definition at line 204 of file physicsmanager.cpp.

void Mezzanine::debug::InternalDebugDrawer::drawLine ( const btVector3 &  from,
const btVector3 &  to,
const btVector3 &  color 
)
virtual

This will prepare a line segment for being drawn.

This adds the points for a line to the internal list of points to be rendered.

Parameters
fromThe first point of the line
toThe second point of the line
colorCurrently ignored

Definition at line 199 of file physicsmanager.cpp.

void Mezzanine::debug::InternalDebugDrawer::FinalizeUpdate ( )
virtual

Copies all the line data to render buffers so they can be seen on screen.

Definition at line 192 of file physicsmanager.cpp.

int Mezzanine::debug::InternalDebugDrawer::getDebugMode ( ) const
virtual

This will return the current debug mode.

Currently this can only return btIDebugDraw::DBG_NoDebug or btIDebugDraw::DBG_DrawWireframe

Returns
Returns the Current debug mode, currently either btIDebugDraw::DBG_NoDebug or btIDebugDraw::DBG_DrawWireframe

Definition at line 224 of file physicsmanager.cpp.

void Mezzanine::debug::InternalDebugDrawer::PrepareForUpdate ( )
virtual

Clears data as necessary for updating debug geometry.

Definition at line 184 of file physicsmanager.cpp.

void Mezzanine::debug::InternalDebugDrawer::reportErrorWarning ( const char *  warningString)
virtual

Used by the physics subsystem to report errors using the renderer.

We Believe that this is used by the physics subsystem to report errors about rendering to the developer/user. As such, we Have redirected all input from this function to the Entresol::Log function.

Parameters
warningStringWe Believe These are messagesfrom the physics subsystem, and that this should not directly called otherwise

Definition at line 229 of file physicsmanager.cpp.

void Mezzanine::debug::InternalDebugDrawer::setDebugMode ( int  debugMode)
virtual

This is used to decide how much the debug render should draw.

Currently this accepts btIDebugDraw::DBG_NoDebug or btIDebugDraw::DBG_DrawWireframe and setting these will either start or stop Wireframe rendering. All other btIDebugDraw values are ignored.

Parameters
debugModeAn Int which contains either btIDebugDraw::DBG_NoDebug or btIDebugDraw::DBG_DrawWireframe

Definition at line 212 of file physicsmanager.cpp.


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