20050201
A crash course in OpenGL with airbags - Click!
The past two weeks I have been racking my brain trying to get OpenGL to work. Fortunately, I finally found some one who can help.Compiling Instructions
Shell Script Instructions
As it turns out, my computer had GLUT, the OpenGL Utility Toolkit, and Mesa all along. In retrospect, I wish I had not upgraded/downgraded the files I already had. But I'm OK. If something bad happens I'll be sure to list it here.
Now, before you get all "Perhaps my computer has this already." Be certan that you do! Some of them have been packaged with GCC. But the most important thing that you should have, is X11. If you are using Linux or Unix, you're OK. Windows and MacOS users will have to keep looking.
Simple instructions:
If you plan on using more than one C++ file for a multipe object program for OpenGL (recommended!)
1) c++ -c gears.cpp -o gears.o
2) repeat step one for each module you plan on using
3) When you have all your .o files ready, execute the following line.
c++ -Wl--startgroup gears.o ... --Wl--endgroup -o gears.exe -I/usr/X11R6/include/ -L/usr/X11R6/lib/ -lglut -lGL -GLU -lX11 -lXmu -lXi -lm
I'll post a template for an OpenGL file later.
Check out the two links to seen what the attributes do.
posted by Bushido Hacks 2/01/2005 01:44:00 PM