New Question about the Vertex pointers

First thank you to all who helped me get my vertex pointers working!!!

My question is now about multiple vertex pointers…

lets say i load 2 or more shapes from external files… I load int via vertex pointers… ( right now i do this for one )… is there any trick in doing it for two or more… ie

do i need to signal that its a new shape?
do i just continue to make vertext pointers after pointers and just call drawarrays when im done.?

Thanks,
JMG

The only thing you need to do is call glVertexPointer with the buffer you actually want to use before you call glDrawArrays.


draw() {
  glVertexPointer(..., buffer1);
  glDrawArrays(...);

  glVertexPointer(..., buffer2);
  glDrawArrays(...);
}