PDA

View Full Version : OpenGL Headers and Libraries



Invincible
02-13-2002, 05:17 PM
Where on earth can I find these files? I tried SGI, yes they have them. They're bundled in an SDK that you have to have a membership to get. Well, I completed the membership application, and I got an email saying I had access, but my password doesn't seem to work.

Is there anywhere else to get these files:

opengl32.h, opengl32.lib, opengl.h, opengl.lib

and the ones for glut too, although I think I can get these

glu32.h, glu32.lib, glu.h, glu.lib, glut32.h glut32.lib, glut.h, glut.lib

Ken Fitlike
02-13-2002, 05:26 PM
The headers should come with your compiler as should the libs although the exact names and extensions may be different eg mingw would name them something like libopengl32.a

This question would possibly be better directed at the Gaming Forum...?

Invincible
02-13-2002, 05:31 PM
I'm using VC 6. I should have mentioned that. I thought the same thing. According to the tutorials I read, they should be listed in my header file as the opengl32 version, but I couldn't find them.

I'll look again, for like names, but I don't think they're there.


This question would possibly be better directed at the Gaming Forum...?

Ahh yeah .... but I can't cross-post now :p

no-one
02-13-2002, 05:37 PM
in MSVC this should work

#include<gl/gl.h>
#include<gl/glu.h>

>opengl32.h, opengl32.lib, opengl.h, opengl.lib

included with windows and MSVC

>glu32.h, glu32.lib, glu.h, glu.lib, glut32.h glut32.lib, glut.h, glut.lib

glu and glut are seperate entities, glu is included with windows and MSVC and glut must be downloaded seperately.

http://www.opengl.org should have everything you need.

GLU32.lib and and OpenGL32.lib can be found on a default install here

C:\Program Files\Microsoft Visual Studio\VC98\Lib\

the headers are here

C:\Program Files\Microsoft Visual Studio\VC98\Include\GL

Ken Fitlike
02-13-2002, 05:39 PM
If headers are not in include\gl directory and the libs are absent from your lib directory then:

1. Go get 'em from ms
2. If not 1. then re-install msvc.

Repeat steps until successful.

You may also consider downloading the aug2001psdk from ms - it certainly has the full bifter.

alex
02-13-2002, 05:39 PM
There is an alternative OpenGL implementation (gpl)... Take a peek at http://www.mesa3d.org.

Invincible
02-13-2002, 10:51 PM
Ok I've made an ass of myself. The GL Folder was the the very first one in my include folder. I guess I was looking for a header file and not a folder. My mistake.

But hey, no-one, all I have in there is GL.h, glu.h, and glaux.h

Do I need any of the others to do opengl in widows? I hadn't even heard about Glaux and GL headers yets.

And as far as cross-platform, what additional headers will I want?
Now that I know I can get them from MS doh....


Thanks, invincible

no-one
02-14-2002, 01:03 PM
if any you might get glut if you don't want to use win32, other than that you really won't need much else.

>
But hey, no-one, all I have in there is GL.h, glu.h, and glaux.h

Do I need any of the others to do opengl in widows? I hadn't even heard about Glaux and GL headers yets.
<

thats all you should have there,

GL.h is the header for OpenGL.
glu.h defines some handy functions and other utilities to help you.
glaux.h is the same a glu.h but its purpose is a little different.

basically glu and glaux are just extension libs, there not truely necessary to use opengl that may be why you havn't theard of them.

glut can be found here:

http://www.opengl.org/developers/documentation/glut.html

Invincible
02-14-2002, 06:37 PM
Thanks for all your help. I'm getting it now :)

Also I've been looking at some of the better demos in openGL, and you were right it does look sharp.