Implement an option to choose path color. Refs #1.

This commit is contained in:
2018-04-03 16:43:23 +02:00
parent 62153d9c6d
commit f62c2859e3
7 changed files with 33 additions and 3 deletions

View File

@@ -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();