30 #ifndef RIOENGINE_EDITOR_QGLGAMEVIEWPORT_BDEBUGDRAW_H
31 #define RIOENGINE_EDITOR_QGLGAMEVIEWPORT_BDEBUGDRAW_H
33 #include <QGLShaderProgram>
34 #include "bullet/btBulletDynamicsCommon.h"
42 bDebugDraw(QGLShaderProgram* shader_program = NULL);
43 std::map<QString, std::vector<LineInfo>>*
lines();
47 virtual void drawLine(
const btVector3 &from,
const btVector3 &to,
const btVector3 &color);
49 const btVector3 &normalOnB,
52 const btVector3 &color);
54 virtual void draw3dText(
const btVector3 &location,
const char *textString);
61 QGLShaderProgram* m_shaderProgram;
62 std::map<QString, std::vector<LineInfo>> m_lines;
65 #endif // RIOENGINE_EDITOR_QGLGAMEVIEWPORT_BDEBUGDRAW_H
std::map< QString, std::vector< LineInfo > > * lines()
virtual int getDebugMode() const
virtual void setDebugMode(int debugMode)
virtual void draw3dText(const btVector3 &location, const char *textString)
virtual void reportErrorWarning(const char *warningString)
virtual void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color)
bDebugDraw(QGLShaderProgram *shader_program=NULL)
virtual void drawContactPoint(const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color)