Creating an OpenGl/GLUT application (edited from John's
version)
Here, I will assume that you are somewhat familiar with Microsoft's Developer
Studio or Visual C++ version 5.0 or 6.0.
- From the menu file choose File->New.
- Click on Win32 Console Application, and give a name for your project.
- Choose an empty project.
- From the menu file choose Project->Add to Project->Files...
to add files to your project.
- From the menu file choose Project->Settings... and click on
the Link tab.
- In the Object/Library Modules: line add the following libraries
: opengl32.lib, glu32.lib, and glut32.lib. The
Settings dialog should look like that
- Add in the begining of all your header files (types.h, funcs.h) the statement:
#include <windows.h>
but don't forget to remove it after you transfer your fles back to UNIX m/cs.
You can use #ifdef statements or some other tricks to avoid it.
- Change the include directives for "glut.h" in the "main.c"
& "types.h" to,
#include <glut.h>
- You are now ready to build and execute your program !!!