Hey everyone. I was checking out the nehe tuts at nehe.gamedev.net and for the first lesson that creates a window for stuff to be rendered to, it uses glaux! >< bleh. As I was looking for a better solution to glaux I saw on these forums that you can use glut to make windows.
However, Im not quite sure on how to go about doing this… could somebody give me a good hard shove in the right direction to create a window and have it wait for stuff to be rendered to it?
Hey,
You need to get glut32.dll,glut.h and glut.lib files.Search for them online,and install them as insructed.Then jus say #include<glut.h> before your code.And you can find the main() function using GLUT on the opengl.org.Try the Red book.Cheers.
Originally posted by caldiar:
[Linker Error] Undefined reference to ‘_glutInitWithWindow@12’
[Linker Error] Undefined reference to ‘_glutCreateWindowWithExit@8’
[Linker Error] Undefined reference to ‘glutCreateMenuWithExit@8’
try to do this before including glut.h : #define GLUT_DISABLE_ATEXIT_HACK
If everything said on this thread fails, you may want to try FreeGlut, OpenGLUT, or even OpenGLEAN , all are enhancements over the original aging GLUT.