Animating drawing of lines

Is there an OpenGL command to animate the drawing of a line? I have come up with an idea, but it is very brutal. I would feel silly doing the work if openGL supports something of this nature.

opengl just draws stuff. You must perform the calculations to animate something yourself, and then draw what you want in the correct position.

Chances are your ‘brutal’ method is probably the way to do it.

As the complexity of the animation increases, I’m sure your method will seem very simple by comparison…