I have a number of quads being drawn on screen using VBO’s with the
glDrawArrays
call and I was wondering if it is possible to draw different textures onto each of these quads because they are in the same draw call and in the same vbo?
The problem is, if I were to bind a number of textures (like in the code below) then ALL the quads would have the last bound texture.
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, image.image);
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, image.image);
So can I use the two bound textures above on two different quads rendered in the same glDrawArrays call and if so how is this possible?
Thanks,
GGL