Digital Paint Discussion Board

Digital Paint Community => Other Stuff => Topic started by: y00tz on September 13, 2007, 03:30:07 PM

Title: OpenGL (gl.h) out of date.
Post by: y00tz on September 13, 2007, 03:30:07 PM
My gl.h is from '96 (Version 1.1) and I'm a newb... I have no idea where to get legitimate ("official" ?) copies of the entire gl/* for Windows, can someone help me out?

I believe the current version is like 2.1 or something... I'm having a lot of code fail (i.e. SecondaryColor3f() requires 1.4+)


Thanks,
y00tz
Title: Re: OpenGL (gl.h) out of date.
Post by: KnacK on September 13, 2007, 03:47:00 PM
I think KiLo can get you set up with the torrent for that .........
Title: Re: OpenGL (gl.h) out of date.
Post by: y00tz on September 13, 2007, 03:48:26 PM
Heh.  If I recall, it may be with the platform SDK or something.  I don't know anymore :P
Title: Re: OpenGL (gl.h) out of date.
Post by: Deranged on September 14, 2007, 05:28:44 PM
In the current way opengl is distributed, you are only given access to version 1.1 and then you have to(through a rather hacky method) get newer features by requesting them through function pointers directly from the hardware.

OpenGL 3.0 is supposed to change that though

So.. you can't get a newer gl.h, just live with it for now. Learn to use extentions.
Title: Re: OpenGL (gl.h) out of date.
Post by: y00tz on September 15, 2007, 01:38:50 AM
In the current way opengl is distributed, you are only given access to version 1.1 and then you have to(through a rather hacky method) get newer features by requesting them through function pointers directly from the hardware.

OpenGL 3.0 is supposed to change that though

So.. you can't get a newer gl.h, just live with it for now. Learn to use extentions.

...


Anyway, I managed to get via the nVidia SDK, a copy of GL.H that has versions 1.1,1.2,1.3, and 1.4 included. 

Thanks for the help though.
Title: Re: OpenGL (gl.h) out of date.
Post by: Deranged on September 15, 2007, 08:23:22 PM
Oh I forgot. vista now offers support for calling of 1.4 functions without extentions. And khronos group has yet to release the OpenGL 3.0 sdk to do away with this idiocy of following what microsoft says should be supported
Title: Re: OpenGL (gl.h) out of date.
Post by: jitspoe on September 19, 2007, 02:01:20 AM
I think you can use something like glew (?) to automatically take care of the extensions for you.
Title: Re: OpenGL (gl.h) out of date.
Post by: Deranged on September 19, 2007, 08:28:16 AM
glew is good, I prefer glee because you don't have to initialize it :P less work(even if it is just one line less)