PDA

View Full Version : What is the difference between glBlendEquationEXT and glBlendEquation?



pchiu
08-04-2005, 10:08 AM
What is the difference between glBlendEquationEXT and glBlendEquation?

I saw some code uses 'glBlendEquationEXT', and some code uses 'glBlendEquation'. I looked at their parameters, and the resulting color calculations. All look similar. So, how are these two functions different? And how do I determine which one to use?

Any information is appreciated. Thanks.

Hlz
08-04-2005, 04:30 PM
http://www.opengl.org/resources/features/OGLextensions/

James W. Walker
08-04-2005, 09:21 PM
I don't think there is a difference, it just depends on what version of OpenGL is supported by the particular renderer. I just use whichever one is available: first I try to get the function pointer for glBlendEquation, and if that's NULL, try for glBlendEquationEXT.

Hlz
08-05-2005, 06:50 AM
There most certainly is a difference. You should always check the extension string.

Read the linked document.

pchiu
08-05-2005, 08:38 AM
Thanks.