| 33 | class BulletDebugDrawer_DeprecatedOpenGL : public btIDebugDraw { |
| 34 | public: |
| 35 | void SetMatrices(glm::mat4 pViewMatrix, glm::mat4 pProjectionMatrix) { |
| 36 | glUseProgram(0); // Use Fixed-function pipeline (no shaders) |
| 37 | glMatrixMode(GL_MODELVIEW); |
| 38 | glLoadMatrixf(&pViewMatrix[0][0]); |
| 39 | glMatrixMode(GL_PROJECTION); |
| 40 | glLoadMatrixf(&pProjectionMatrix[0][0]); |
| 41 | } |
| 42 | |
| 43 | virtual void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color) { |
| 44 | glColor3f(color.x(), color.y(), color.z()); |