Hey all, I’ve got a question to which I haven’t been able to find any (promising) answer to.
Is there any way to do multitexturing with vertex arrays using the vertex array functions (for a single pass on the set of arrays)?
I’ve got things working beautifully currently with one texture, but I’d like to be able to map a second on top of it, and everything I see seems to point that, using vertex arrays, it can’t be done - at least not the way I want to do it.
I’m using glDrawArrays to handle a Color pointer, a TexCoord pointer and a Vertex pointer. Even if I could get the second texture to reuse the TexCoord pointer (which is, incidentally, what I want), I’d be happy, but I cannot (definitely not) make a second pass on the vertex data (that would double my polycount and my app instantly runs like molasses in the dead of winter above the arctic circle).
If anyone can help — PLEASE!!!