So, I’m new to OpenGL, and not really sure what I’m doing here. What I want to do is install OpenGL without Glut. Reason being, I am learning SDL for use in managing my application where GLUT would normally take control. IE: Window Managing, Events, looping applicaion, etc.
However, I can not seem to find a resource pertaining to installation of OpenGL without GLUT. I do not want the GLUT toolkit; just OpenGL and GLU.
How would I go about this installation on my Windows enviorment with MinGW + Code::Blocks?
Sidebar: Interestingly enough, Code::blocks seems to have the header files for OpenGL, GLU, and GLUT, but not the library files for OpenGL. :, and thus I get errors when compiling my applications.
You should see OpenGL libraries under “YourMinGW/lib” folder: libopengl32.a : OpenGL lib libglu32.a : GLU lib
And, the linker parameter for an OpenGL application should include:
-lglu32 -lopengl32 -lwinmm -lgdi32 (You can omit glu32 if you don’t use GLU functions in your code.)
[EDIT]
Notice that winmm and gdi32 are also needed because you are building a Windows application.
[/EDIT]