Last change
on this file since 167 was
167,
checked in by (none), 14 years ago
|
Simeo: added final project and also older proof of concept code.
We used Git for version control, so look at the Git repo
in SIMEO/Simeo/ for more info.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[167] | 1 | #ifndef GL_DEBUG_DRAWER_H |
---|
| 2 | #define GL_DEBUG_DRAWER_H |
---|
| 3 | |
---|
| 4 | #include "LinearMath/btIDebugDraw.h" |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | class GLDebugDrawer : public btIDebugDraw |
---|
| 9 | { |
---|
| 10 | int m_debugMode; |
---|
| 11 | |
---|
| 12 | public: |
---|
| 13 | |
---|
| 14 | GLDebugDrawer(); |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | virtual void drawLine(const btVector3& from,const btVector3& to,const btVector3& fromColor, const btVector3& toColor); |
---|
| 18 | |
---|
| 19 | virtual void drawLine(const btVector3& from,const btVector3& to,const btVector3& color); |
---|
| 20 | |
---|
| 21 | virtual void drawSphere (const btVector3& p, btScalar radius, const btVector3& color); |
---|
| 22 | virtual void drawBox (const btVector3& boxMin, const btVector3& boxMax, const btVector3& color, btScalar alpha); |
---|
| 23 | |
---|
| 24 | virtual void drawTriangle(const btVector3& a,const btVector3& b,const btVector3& c,const btVector3& color,btScalar alpha); |
---|
| 25 | |
---|
| 26 | virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color); |
---|
| 27 | |
---|
| 28 | virtual void reportErrorWarning(const char* warningString); |
---|
| 29 | |
---|
| 30 | virtual void draw3dText(const btVector3& location,const char* textString); |
---|
| 31 | |
---|
| 32 | virtual void setDebugMode(int debugMode); |
---|
| 33 | |
---|
| 34 | virtual int getDebugMode() const { return m_debugMode;} |
---|
| 35 | |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | #endif//GL_DEBUG_DRAWER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.