I'm reading a few tutorials on OpenGL... and all the program examples have "#include <GL/glul.h>" and i cant find that header file... i have done a few searches on google and cant find anything.... anyone know where i can find it?
I'm reading a few tutorials on OpenGL... and all the program examples have "#include <GL/glul.h>" and i cant find that header file... i have done a few searches on google and cant find anything.... anyone know where i can find it?
What compiler are you using?
Compilers like LCC and MinGW have the GL directory included in their respective base include directory, so you might find that you have the OpenGL headers.
Last edited by MacGyver; 05-15-2007 at 12:05 AM.
Dev-C++
I had a look in the include directory, there is the GL directory there, but the only files in there is "gl.h" "glext.h" & "glu.h"
Last edited by Loic; 05-15-2007 at 12:25 AM.
you have to link to them in your project settings. And if you are doing the NeHe tutorials you need glut. The easiest way to download this is to use the update thing in dev-c
Good luck
And if you're not using NeHe's tutorials, consider doing so. nehe.gamedev.net
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
GLU isn't entirely necessary (at least in the beginning) but it provides a lot of functions that make doing things with the stadard gl.h library easier, like fov, orthographic perspective and other quick camera settings. There are a lot more, though.
Nehe is great but I think they should have gone with a windowing framework like glut or GLFW. It's too cluttered around windows. But I ususally have my OpenGL independent stuff in a class no matter which windowing library I use, I can just create classes of my scene. It took me long enough to learn that.
Last edited by indigo0086; 05-15-2007 at 12:55 PM.
Well I was actually going to do a different tutorial but after having a look over the nehe tutorials I think I am going to do them... Cheers