Log in or register to post comments

Can't use glColor4f in OpenGL ES 2.0

February 22, 2012 - 7:18am #1

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.

Re: Can't use glColor4f in OpenGL ES 2.0

February 22, 2012 - 11:58pm #3

Thanks a lot Kim, I'll give it a try.

Re: Can't use glColor4f in OpenGL ES 2.0

February 22, 2012 - 6:32pm #2

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

Log in or register to post comments