| 1130 | } |
| 1131 | } |
| 1132 | void OpenGLGuiHelper::createPhysicsDebugDrawer(btDiscreteDynamicsWorld* rbWorld) |
| 1133 | { |
| 1134 | btAssert(rbWorld); |
| 1135 | if (m_data->m_debugDraw) |
| 1136 | { |
| 1137 | delete m_data->m_debugDraw; |
| 1138 | m_data->m_debugDraw = 0; |
| 1139 | } |
| 1140 | |
| 1141 | m_data->m_debugDraw = new MyDebugDrawer(m_data->m_glApp); |
| 1142 | rbWorld->setDebugDrawer(m_data->m_debugDraw); |
| 1143 | |
| 1144 | m_data->m_debugDraw->setDebugMode( |
| 1145 | btIDebugDraw::DBG_DrawWireframe + btIDebugDraw::DBG_DrawAabb |
| 1146 | //btIDebugDraw::DBG_DrawContactPoints |
| 1147 | ); |
| 1148 | } |
| 1149 | |
| 1150 | struct Common2dCanvasInterface* OpenGLGuiHelper::get2dCanvasInterface() |
| 1151 | { |
no test coverage detected