In OpenGL, I'm reading about glVertexPointer which has a parameter: const void* pointer
and it is a pointer to the coordinates of the first vertex. Thing is, it doesn't have any parameters that tell you the amount of vertices there are.
I'm wondering if there is a way to copy or store this pointer for use in a later function called glDrawElements. Why? Because glDrawElements has a parameter with the count, but it's always called after the glVertexPointer.
Simplified:
glVertexPointer called.. //has vertices which I need but does not have the count. Documentation
glDrawElementers called.. //has the count but only indices (not vertices). Called after the above ={ Documentation
Is there anyway to do what I'm asking? glPushClientAttrib and glPopClientAttrib do what I'm asking?