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
2010-02-09 09:00:27
Thanks! Can I ask about difference between meanings of the terms 'client' and 'server' in the documentation?
Eonil
2010-02-09 09:11:33
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
2010-02-09 09:18:22
Thanks a lot! This is very helpful!
Eonil
2010-02-09 12:16:09