This is used to draw wireframse for the Physics subsystem. More...
Public Member Functions | |
InternalDebugDrawer (World *ParentWorld) | |
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... | |
virtual void | SetLogger (Mezzanine::Logger *Logger) |
Sets the safe logger to sent debug output to. More... | |
This is used to draw wireframse for the Physics subsystem.
Definition at line 114 of file physicsmanager.cpp.
Mezzanine::debug::InternalDebugDrawer::InternalDebugDrawer | ( | World * | ParentWorld | ) |
Basic Constructor.
Definition at line 194 of file physicsmanager.cpp.
|
virtual |
Destructor.
Definition at line 200 of file physicsmanager.cpp.
|
virtual |
Currently Unused.
Currently Unused
location | Currently Unused |
textString | Currently Unused |
Definition at line 229 of file physicsmanager.cpp.
|
virtual |
Currently Unused.
Currently Unused
PointOnB | Currently Unused |
normalOnB | Currently Unused |
distance | Currently Unused |
lifeTime | Currently Unused |
color | Currently Unused |
Definition at line 226 of file physicsmanager.cpp.
|
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.
from | The first point of the line |
to | The second point of the line |
color | Currently ignored |
Definition at line 223 of file physicsmanager.cpp.
|
virtual |
Copies all the line data to render buffers so they can be seen on screen.
Definition at line 218 of file physicsmanager.cpp.
|
virtual |
This will return the current debug mode.
Currently this can only return btIDebugDraw::DBG_NoDebug or btIDebugDraw::DBG_DrawWireframe
Definition at line 244 of file physicsmanager.cpp.
|
virtual |
Clears data as necessary for updating debug geometry.
Definition at line 206 of file physicsmanager.cpp.
|
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.
warningString | We Believe These are messagesfrom the physics subsystem, and that this should not directly called otherwise |
Definition at line 250 of file physicsmanager.cpp.
|
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.
debugMode | An Int which contains either btIDebugDraw::DBG_NoDebug or btIDebugDraw::DBG_DrawWireframe |
Definition at line 232 of file physicsmanager.cpp.
|
virtual |
Sets the safe logger to sent debug output to.
Logger | A pointer to the safe logger for debug output. |
Definition at line 247 of file physicsmanager.cpp.