glDrawArrays - Multiple Textures

Hi you all out there,

I´m sitting over a problem that will probably be quite easy for you advanced coders. I´m using glDrawArrays and I´ve got a buffer that holds the texture coordinates and the vertices. All this does is drawing a cube on my screen. Everything works fine, but now I wanted to attach multiple textures to the cube, so the left side can have an other texture than on the right side, for example. Since I put all vertices and texture coordinates in one single buffer I wonder if there´s the possibility of using multiple texture with only one call to glDrawArrays. Is it possible to put texture ids into that buffer, too?

You can supply more than one set of UV values and more that one texture for drawing. Are you using shaders or basic OpenGL - it makes a difference how hard/easy this is to do. It is easy with a shader - if the U/V value is < 0.5 select a pixel from the left texture else select from the right texture.