This homework is based on the "glsl_bare" program. You can download buildable source and a prebuilt binary for Windows and Linux (Zip, Tar-gzip). You WILL have to recompile this program to finish this homework, so try out your compilers early! It's been tested with Visual C++ 2003 in the Chapman Lab, Visual C++ 2005 "Express" (download free from Microsoft), Code::Blocks, and Linux.
I'd like you to write ONE program that does the following things:
Here's an example
of what I'm looking for overall, although you're free to make something cooler.
Problem 1 is finished because the background is now purple.
Problem 2 is finished because I've got grids of both red and green triangles,
and the green triangles are deeper than the reds (this is tough to see in a
static image!).
Problem 3 is finished because I do my matrix stuff in C++ (though you can't see it!).
Problem 4 is finished because the triangles are square even though the window isn't.
Turn in your finished C++ "main.cpp" and vertex program "vertex.txt" files via Blackboard. Please do NOT turn in any of the OpenGL libraries included in glsl_bare--I've already got 'em, thanks! Due midnight Thursday, September 28th. WARNING: If your C++ or vertex programs don't compile, you won't get any points! Be sure to try them out before submitting them! Even though you turn in a single program, you will get credit for any problems you complete, even if you can't finish all the problems...
If Blackboard doesn't work for you, or you don't have an account, you can email this homework to me at ffosl@uaf.edu.