Department of Computer Science Worcester Polytechnic Institute |
---|
Objective: | In this project, you will learn some of the basics of OpenGL. The project will not be graded. |
---|---|
Project: | The aim of this project is to get your feet wet in OpenGL. You will learn how to install and set up your OpenGL system and perform a few simple, fun tasks. You will mostly be given some readings from the book and be expected to type in an accompanying sample program or cut and paste examples. Follow the instructions and type in code carefully. Note that due to the large number of operating systems and compilers out there, I cannot provide help on all platforms. I will be glad to provide assistance on how to compile your code on ccc.wpi.edu or MinGW. You can develop on any platform with C/C++ and OpenGL, but grading will be done on CCC, so it is your responsibility to get it working there. |
Setup: |
Here is a Makefile that works on ccc.wpi.edu, here is a
Makefile for Windows, and here is a
Makefile for Mac OSX. These are just samples, and
assume that your OpenGL program is in a file called cs543_proj0.cpp. Change the
names accordingly for your program.
You can either rename (or copy) the makefile you will use to "Makefile", or use the "-f" option to make, (e.g., "make -f Makefile.windows"). Here's a sample output from using Makefile.unix on ccc.wpi.edu, which has been renamed "Makefile":
> ls cs543_proj0.cpp Makefile > make g++ -o proj0 cs543_proj0.cpp -lglut -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lm > ls cs543_proj0.cpp proj0 Makefile > ./proj0 [program runs] > make make: `proj0' is up to date. > make clean rm proj0 |
Coding: |
|
Academic Honesty: |
Remember the policy on Academic Honesty: You may discuss the assignment with others, but you are to do your own work. The official WPI statement for Academic Honesty can be accessed HERE. |