- added heap sort and binary search/linear search to btAlignedObjectArray - fixed wrong cast, thanks Hamstray, http://www.continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=1015
31 lines
694 B
C++
31 lines
694 B
C++
#ifndef GL_DEBUG_DRAWER_H
|
|
#define GL_DEBUG_DRAWER_H
|
|
|
|
#include "LinearMath/btIDebugDraw.h"
|
|
|
|
|
|
|
|
class GLDebugDrawer : public btIDebugDraw
|
|
{
|
|
int m_debugMode;
|
|
|
|
public:
|
|
|
|
GLDebugDrawer();
|
|
|
|
void drawAabb(const btVector3& from,const btVector3& to,const btVector3& color);
|
|
|
|
virtual void drawLine(const btVector3& from,const btVector3& to,const btVector3& color);
|
|
|
|
virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color);
|
|
|
|
virtual void reportErrorWarning(const char* warningString);
|
|
|
|
virtual void setDebugMode(int debugMode);
|
|
|
|
virtual int getDebugMode() const { return m_debugMode;}
|
|
|
|
};
|
|
|
|
#endif//GL_DEBUG_DRAWER_H
|