Defining multiple vertex arrays

hello,

Can you define in OpenGL multiple vertex arrays?

pseudocode:

glTranslated( );
glNormalPointers(,normals);
//first array
glVertexPointer(,vertices);
glTranslated( );
glNormalPointers(,normals);
//second array
glVertexPointer(,vertices);
//here i want a functioncall that
//access the first array and the second
//and draw triangles in between
glDraw

I want to draw a cylinder between to points in space…
Thank you in advance…

You can’t use the arrays like you want to do in your pseudocode. The arrays are used when you call the glDraw… function. So in your code the two translations are just added and only the last specified arrays are used for drawing.