Author Topic: OpenGL (gl.h) out of date.  (Read 1064 times)

y00tz

  • Autococker
  • Posts: 2742
OpenGL (gl.h) out of date.
« on: September 13, 2007, 01: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

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: OpenGL (gl.h) out of date.
« Reply #1 on: September 13, 2007, 01:47:00 PM »
I think KiLo can get you set up with the torrent for that .........

y00tz

  • Autococker
  • Posts: 2742
Re: OpenGL (gl.h) out of date.
« Reply #2 on: September 13, 2007, 01:48:26 PM »
Heh.  If I recall, it may be with the platform SDK or something.  I don't know anymore :P

Deranged

  • 68 Carbine
  • Posts: 409
Re: OpenGL (gl.h) out of date.
« Reply #3 on: September 14, 2007, 03: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.

y00tz

  • Autococker
  • Posts: 2742
Re: OpenGL (gl.h) out of date.
« Reply #4 on: September 14, 2007, 11:38:50 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.

...


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.

Deranged

  • 68 Carbine
  • Posts: 409
Re: OpenGL (gl.h) out of date.
« Reply #5 on: September 15, 2007, 06: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

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: OpenGL (gl.h) out of date.
« Reply #6 on: September 19, 2007, 12:01:20 AM »
I think you can use something like glew (?) to automatically take care of the extensions for you.

Deranged

  • 68 Carbine
  • Posts: 409
Re: OpenGL (gl.h) out of date.
« Reply #7 on: September 19, 2007, 06: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)