MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / flushLines

Function flushLines

examples/ExampleBrowser/OpenGLGuiHelper.cpp:110–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
131static btVector4 sColors[4] =

Callers 1

drawLineFunction · 0.85

Calls 6

sizeMethod · 0.45
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45
drawLinesMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected