Vertex Array and GL_LINES HELP!!!


I am trying to implement GL_LINES vertex array but i dont really understand how i should, as i am using 2 arrays to store the vertex pojts, one for the start and one for the end point.

The start point never canges after initialisation sithats the reason where as the end point always changes.

Can someone help me please, i am at a major loss and running out of time.


Your vertices must be in the same array. There is no other way.