Implement an option to choose path color. Refs #1.
This commit is contained in:
@@ -72,7 +72,7 @@ void ActivityAnimation::draw(float timeScale)
|
||||
glDrawArrays(GL_POINTS, 0, bufferLength / 3);
|
||||
glDisableClientState(GL_COLOR_ARRAY);
|
||||
if (RenderingState::instance().renderInteractionPaths()) {
|
||||
glColor4f(1, 1, 1, 0.1);
|
||||
glColor4fv(RenderingState::instance().pathColor().data());
|
||||
glVertexPointer(3, GL_FLOAT, 0, startingPos.data());
|
||||
glDrawElements(GL_LINES, lineIndices.size(), GL_UNSIGNED_INT, lineIndices.data());
|
||||
checkGLErrors();
|
||||
|
||||
Reference in New Issue
Block a user