| 108 | } |
| 109 | |
| 110 | virtual void flushLines() |
| 111 | { |
| 112 | int sz = m_linePoints.size(); |
| 113 | if (sz) |
| 114 | { |
| 115 | float debugColor[4]; |
| 116 | debugColor[0] = m_currentLineColor.x(); |
| 117 | debugColor[1] = m_currentLineColor.y(); |
| 118 | debugColor[2] = m_currentLineColor.z(); |
| 119 | debugColor[3] = 1.f; |
| 120 | m_glApp->m_renderer->drawLines(&m_linePoints[0].x, debugColor, |
| 121 | m_linePoints.size(), sizeof(MyDebugVec3), |
| 122 | &m_lineIndices[0], |
| 123 | m_lineIndices.size(), |
| 124 | 1); |
| 125 | m_linePoints.clear(); |
| 126 | m_lineIndices.clear(); |
| 127 | } |
| 128 | } |
| 129 | }; |
| 130 | |
| 131 | static btVector4 sColors[4] = |