I am having a problem with Textures and Vertex arrays, i have a large vertex array that stores my entire game level but i want to use more than one texture, i dont mean having two textures on each face i mean having something like texture1 on faces 1 and 3 and texture2 on face 2 etc, and i just want to know if there is a smoother way to do this than the way im doing it now, which is bind the texture then display the face eg.
glBindTexture(GL_TEXTURE_2D,TexLib[0]);
glDrawArrays(GL_QUADS, 0, 4);
glBindTexture(GL_TEXTURE_2D,TexLib[1]);
glDrawArrays(GL_QUADS, 4, 4);
glBindTexture(GL_TEXTURE_2D,TexLib[0]);
glDrawArrays(GL_QUADS, 8, 4);
etc,etc...
Is there a simpler or faster way of doing this?
[This message has been edited by Twixn (edited 03-12-2004).]




