How to change textures while glDrawElements?

Yes how does one change the actual drawing texture during an glDrawElements() call can one do it like glvertexPointer just with textures instead(glTexturePointer )?

Thanx in advance,XBTC!

This isn’t possible. The currently bound texture is part of the rendering state, so it’s fixed for the duration of a glBegin/glEnd block or a glDrawElements call (which is just a different way of doing the same thing).

The only way would be to make all your textures into regions of one texture, and use texcoords to select the one you wanted. Messy though, and problems with border clamping/repeating and filtering.


No,no,no that´s exactly what I didn´t want to hear.

Thanx anyway,XBTC!