PDA

View Full Version : How to assign multitexture coords using vertex array?



haigu
10-10-2000, 01:39 AM
hi, http://www.opengl.org/discussion_boards/ubb/biggrin.gif
I cannot find the way to assign multitexture coordinates when I am using vertexarrays. Can anyone help me ?

Sylvain
10-10-2000, 03:10 AM
glClientActiveTextureARB(GL_TEXTURE0_ARB+channel);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(2,GL_FLOAT,SIZE_OF_VR_VERTEX,ptr );