views:

51

answers:

1

I'm learning GLES. There are many pair functions like glClientActiveTexture/glActiveTexture. What's the difference of them? (Especially the case of glClientActiveTexture)

+1  A: 

From the openGL documentation:

  • glActiveTexture glActiveTexture selects which texture unit subsequent texture state calls will affect.
  • glClientActiveTexture selects the vertex array client state parameters to be modified by glTexCoordPointer.

On one hand, glClientActiveTexture is used to control subsequent glTexCoordPointer calls (with vertex arrays). On the other hand glActiveTexture affects subsequent calls to glTexCoord calls (used by display lists or immediate mode (non existent in OpenGL ES (AFAIK)).

Kenji Baheux
Thanks! Can I ask about difference between meanings of the terms 'client' and 'server' in the documentation?
Eonil
OpenGL was designed so that it could operate over a network, much like protocols such as X11. The machine where the program is running may not be the machine that is doing the rendering. That's generally not the case these days.
geofftnz
Thanks a lot! This is very helpful!
Eonil