PDA

View Full Version : multitexture glInterleavedArrays / glDrawElements?



Jernej
07-10-2005, 01: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?

jide
07-10-2005, 02: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.

T101
07-10-2005, 10: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