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?
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.
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
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.