I want to animate my GL_LINE_STRIP vertex by vertex. Here is how I do it now (inefficiently):
void renderFunc()
{
glDrawElements(GL_LINE_STRIP, testCount, GL_UNSIGNED_INT, (GLvoid*)0);
if ( testCount < verts.size() )
testCount++;
}
However, it must completely redraw vertices, because it draws from the beginning as opposed to from where it left off, which takes extra time. I'd like to try and draw one vertex at a time to speed things up, unless there are other ideas.