View Full Version : Vertex Array and Multitexturing
12-18-2003, 12:05 PM
Is it possible to perform multitexuring ( one texture on the other ) using vertex arrays ?? I mean when you use VA you enable proper client states, setup pointers and finaly drawing using ie glDrawArrays. But how to enable multitexturing ??
Thx in advance
I think you can send one texture coord pointer per texture unit.
12-18-2003, 02:36 PM
What does it mean 'texture unit'?? Does it mean that multitexturing can be done only inside glBegin/glEnd specifying glMultiTexCoord2fARB for every vertex ?? Isn't there any faster method to do it?? glBegin/glEnd with glVertex'es is extremally slow method for displaying thousands of faces isn't it ??
12-18-2003, 04:14 PM
You need glClientActiveTextureARB to select the coordinate set influenced by glTexCoordPointer and glEnableClientState.
You may want to have a look at these threads:
[This message has been edited by zeckensack (edited 12-18-2003).]
12-19-2003, 12:56 AM
Thx A LOT!!! It is exactly what I need :-)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.