Jump to content
  • Advertisement
Sign in to follow this  
Hybrid666

OpenGL Vertex Buffer Objects and Multitexturing together in OpenGL

This topic is 4868 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, simple question really.. i can render simple textured polys using vertex buffer objects, and seperate to that i can also render multitextured polygons in immediate mode (glBegin() / glEnd() style) is there a way i can render multitextured polygons using vertex buffer objects tho, because i cant see any way to combine the functionality of these two extensions? thanks in advance, Hybrid

Share this post


Link to post
Share on other sites
Advertisement
You have to enable the respective texture streams for each of the texture units that you are using. So, for example:

glClientActiveTexture( GL_TEXTURE0 + i );
glEnable( GL_TEXTURE_COORD_ARRAY );
glTexCoordPointer( <blah> );

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!