Jump to content
  • Advertisement
Sign in to follow this  
Dolf

glMultiTexCoord2f question

This topic is 3656 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

Advertisement
Set texture coordinate pointer as usual, but set them per client-side texture unit.

glClientActiveTexture(GL_TEXTURE0);
glTexCoordPointer(texture 0 coordinate array);
glClientActiveTexture(GL_TEXTURE1);
glTexCoordPointer(texture 1 coordinate array);

... and so on.

Share this post


Link to post
Share on other sites
Ahh great thanks ever so much.

Would you also happen to know how to check whether they are even available? (eventhough they should be because it's ancient).

I use GLEE and I can't seem to find a GLEE_ARB_MULTITEXect or something.


Edit: GLEE_ARB_multitexture is there, but isn't that just for passing multiple textures to your shader? Or is it also for multiple texture coordinates?

Edit: Now I wonder, is there a point of multiple texture coordinates if you only have 1 texture...

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!