Back to index

supertuxkart  0.5+dfsg1
GLDebugDrawer.h
Go to the documentation of this file.
00001 #ifndef GL_DEBUG_DRAWER_H
00002 #define GL_DEBUG_DRAWER_H
00003 
00004 #include "LinearMath/btIDebugDraw.h"
00005 
00006 
00007 
00008 class GLDebugDrawer : public btIDebugDraw
00009 {
00010        int m_debugMode;
00011 
00012 public:
00013 
00014        GLDebugDrawer();
00015 
00016 
00017        virtual void  drawLine(const btVector3& from,const btVector3& to,const btVector3& color);
00018 
00019        virtual void  drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color);
00020 
00021        virtual void  reportErrorWarning(const char* warningString);
00022 
00023        virtual void  draw3dText(const btVector3& location,const char* textString);
00024 
00025        virtual void  setDebugMode(int debugMode);
00026 
00027        virtual int          getDebugMode() const { return m_debugMode;}
00028 
00029 };
00030 
00031 #endif//GL_DEBUG_DRAWER_H