View Full Version : multitexture glInterleavedArrays / glDrawElements?

07-10-2005, 02:16 AM
hi, is there any way you could use glDrawElements and glInterleavedArrays with multitexturing? because as far as it looks to me it only works with one set of texture coordinates, is it possible to make it work with multitexturing? or is there some other similar function that works with multitexturing?

07-10-2005, 03:50 AM
use texture coordinates pointers along with vertex pointers, then select the active texture unit for each texture you'd like. multitexcoord doesn't work with arrays.

hope that helps.

07-10-2005, 11:49 PM
1. use glClientActiveTexture to specify the texture unit
2. enable texture coordinate array
3. use glTexCoordPointer to specify texture coordinate array for the texture unit