View Full Version : OpenGL 1.4 libs/headers?

02-11-2004, 06:03 AM
Where do I get the OpenGL 1.4 libraries and header files (e.g. for Windows and Linux)?

Hopefully there is an official site. I've seen some headers from: http://hem.passagen.se/opengl/getstarted/opengl14_include.zip

02-11-2004, 06:34 AM
SGI www.sgi.com (http://www.sgi.com) and Mesa www.mesa3d.org (http://www.mesa3d.org) are a good place for linux. For windows it's hardere but I believe you should look for extensions (glext.h). Best of luck.

02-11-2004, 06:41 AM
Headers and all official extension specs are here: http://oss.sgi.com/projects/ogl-sample/registry/

In case this wasn't clear, there is no LIB or DLL which has functions above OpenGL 1.1 under Windows because Microsoft has never updated the OpenGL32.dll and it's a system file which must not be replaced. You need to wglGetProcAddress on all newer functions. There are some helper code to do that for you in various SDKs.
Dunno about Linux.

[This message has been edited by Relic (edited 02-11-2004).]

02-11-2004, 08:51 AM
Originally posted by Relic:
Headers and all official extension specs are here: http://oss.sgi.com/projects/ogl-sample/registry/

The OpenGL 1.4 book examples do not compile unless I include the gl.h from hem.passagen.se. Why is this? What is the standard approach for making this work?

[This message has been edited by brcain (edited 02-11-2004).]

02-11-2004, 09:45 AM
The book may have been written under the assumption that you compile/run the code in Linux/Solaris, or some other specific environment. This should also be mentioned in the book, methinks.

On Windows, extensions will just never load automatically. You can write the code to import the functions yourself (wglGetProcAddress) or use a library that does it for you. I've heard GLee (http://elf-stone.com/downloads.php) is rather good.

02-12-2004, 06:46 AM
I was also looking for a replacement for the great extgl, since Lev Povalahev sadly seems to have stopped development.
GLee seems very much up to the task - no frills, just two files in the project directory and everything's pretty.
GLew, an offspring of extgl, would also be an option - I don't like the distribution too much though, it's just too bulky for simple OpenGL headers.

02-14-2004, 02:42 PM
yes. i downloaded opengl1.4 headers, but when i compile my new simple code under newest mingw32 i get:
gcc -o test.exe main.o -lopengl32 -lglu32
main.o(.text+0x2ee):main.c: undefined reference to `glGenProgramsNV@8'
main.o(.text+0x2ff):main.c: undefined reference to `glBindProgramNV@8'
main.o(.text+0x31e):main.c: undefined reference to `glLoadProgramNV@16'
main.o(.text+0x334):main.c: undefined reference to `glTrackMatrixNV@16'
main.o(.text+0x635):main.c: undefined reference to `glBindProgramNV@8'
main.o(.text+0x66d):main.c: undefined reference to `glProgramParameter4fNV@24'
mingw32-make: *** [test.exe] Error 1

do i need newer libopengl32.a? if so, where can i download?


02-14-2004, 04:10 PM
that depends, under windows you need to use wglGetProcAddress to access the extensions see nehe.gamedev.net for details.
under linux you should be able to download a later library but I'm not positive

02-16-2004, 02:42 AM
A more portable solution than wglGetProcAddress/glXGetProcAddress is to use glfwGetProcAddress in the GLFW toolkit (http://glfw.sourceforge.net/) . The GLFW Users Manual also gives a pretty deep explanation on how to deal with extensions.

02-16-2004, 02:48 AM
Regarding OpenGL 1.4 headers... I'm the maintainer of the files at hem.passagen.se, and I still have not found any good replacement (except for using something like GLew).

Lately I've been toying with the idea to turn the project into a sourceforge project, so that several people can maintain it under proper version control etc. I think the world deserves a unified, cross platform, up-to-date, OpenGL reference include file, that, at any time, should work as a drop-in replacement for any compiler.

Anyone interested?

Ideally this kind of thing should be run by the ARB, but I think that it should be as open as possible to give some momentum to the project.

[This message has been edited by marcus256 (edited 02-16-2004).]

02-17-2004, 10:12 AM
Originally posted by marcus256:
Regarding OpenGL 1.4 headers... I'm the maintainer of the files at hem.passagen.se, and I still have not found any good replacement.

Thanks for providing these. I'm not as familiar with the porting issues as should be. The headers were very helpful http://www.opengl.org/discussion_boards/ubb/smile.gif