PDA

View Full Version : Library for extensions



Auguri
07-05-2006, 02:43 PM
Does anybody know where to download the PC libraries needed to use functions from glext.h?

I'd like to use some things that are not available in version 1.1, such as, glBlendFuncSeparate.

glext.h is available at http://oss.sgi.com/projects/ogl-sample/registry/

but I can't find the libraries anywhere. I can't believe this functionality isn't available if I want to maintain cross-platform flexibility. Can anyone help?

Thank you.

Overmind
07-05-2006, 05:00 PM
You don't need libraries for these functions, see:
http://www.opengl.org/resources/faq/technical/extensions.htm#exte0070

There are some free libraries that help you with the extension loading. Have a look at GLEW.

Strictly speaking you don't need that, you can also code it yourself. But why reinvent the wheel?

V-man
07-05-2006, 08:41 PM
BTW, the wiki explains this with a few short lines.
Read the "Getting started" part.
You can also download the specifications for the different GL versions from the documents pages
http://opengl.org/documentation/specs/

I looked at
http://www.opengl.org/resources/faq/technical/extensions.htm#exte0070

and oh boy that's ugly!
You don't ned to type
(*glActiveTextureARB)(GL_TEXTURE0_ARB);

Just do
glActiveTextureARB(GL_TEXTURE0_ARB);

Personally, I prefer to get rid of the suffix, so
glActiveTexture(GL_TEXTURE0);