Archived

This topic is now archived and is closed to further replies.

razialx

Vertex Arrays and other things?

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites