Sign in to follow this  
Dolf

glMultiTexCoord2f question

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this