PDA

View Full Version : texture coord arrays?



reubenhawkins
05-10-2002, 07:22 AM
I know for texturing I can create a texture coordinate array using glTexCoordPointer() but how can I do an array for multitexture coords?

Bob
05-10-2002, 08:31 AM
glTexCoordPointer will set the texture coordinate array for the, on the client side, currently active texture unit.



glClientActiveTexture(GL_TEXTURE0); // Set tex coord array for texture unit 0
glTexCoordPointer(...);
glClientActiveTexture(GL_TEXTURE1); // Set tex coord array for texture unit 1
glTexCoordPointer(...);

reubenhawkins
05-11-2002, 06:27 AM
thanx