I have several different objects in my scene and would like to render them as vertex arrays. Since I use different arrays for different objects I have to do this for each object in every frame:
glVertexPointer(3, GL_FLOAT, 0,vertex_array);
glNormalPointer(GL_FLOAT, 0, normal_array);
glTexCoordPointer(2, GL_FLOAT, 0,texcoords_array);
I would guess that this is very inefficient but have no other idea how to do this, because I have to switch the pointers to the different arrays...
Is there a better way to do this when using multiple vertex arrays?
Thank you in advance