"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Can't use glColor4f in OpenGL ES 2.0

Hello, Do you have an idea why glColor4f is only defined in GLES/gl.h and not in GLES2/gl2.h ? I would like to use it on an OpenGL ES 2.0 project, and I can't.. I tried to link both GLES and GLES2 to my project, but compilation fails. Thanks in advance, Guillaume.

glColor4f isn't supported by OpenGL ES 2.0. It is a concept of the fixed function pipeline used by OpenGL ES 1.x. With 2.0 you need to use a shader to apply color to your model. - Kim