Vertex Arrays and other things?

Started by
1 comment, last by razialx 21 years, 10 months ago
Ok, i have a question about vertex arrays. I know how to use them and all, but , how do you , say, use them with Mulitple texture coordinates (ARB_MULTITEXTURE_EXT) or, if you have seen the gametutorials tutorial on volumetric fog? can i pass an array to OGL for my fog coordinates? or could i do this: send the vertex array to the card, then go through and send all the fog coords one at a time? Help plz
Advertisement
this has been answered at least twice that I know of (because I was wondering the same thing for a while), try a search for it.
multitexturing w/ vertex arrays.

glClientActiveTexture(GL_TEXTURE0); // active texture 0.
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(...);
...
glClientActiveTexture(GL_TEXTURE1); // active texture 1.
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(...);
...

glDrawElements(...);


volumetric fog. lookup GL_EXT_fog_coord.


furthermore, checkout OpenGL.org.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

This topic is closed to new replies.

Advertisement