making an OpenGL program

To better examine how OpenGL works and to demonstrate some of the simplest features that OpenGL provides, I have included an example program:

example.exe

example.zip

pkunzip.exe

example directory

This is a self-extracting zip file which should extract a folder called example which contains the following files:

  • settest.exe
  • back.raw
  • bottom.raw
  • front.raw
  • left.raw
  • right.raw
  • top.raw

The settest.exe is the executable, and the .raw files are the texture files for the cube in the executable.

This program will run on any Windows NT or Windows 95 withthe  opengl32.dll, and glu32.dll system files.  These files are standard on Windows NT v3.5+ and Windows 95 OSR 2.x.

Although relatively speaking, this is a simple program, it was a large undertaking (I learned a great deal about OpenGL working on it).  Extensive code, advice, and general help was given by Scott Franke.  For more information on the people who helped me out, please visit the acknowledgements page.

Commands:

F1 enable and disable textures (and lighting)
F2 zoom in
F3 zoom out
F4 default zoom
F5 linear (better) texture filtering
F6 nearest (worse) texture filtering
F7 nicest (best) perspective correction
F8 fastest (worst) perspective correction
F9 rotate on (not working for some reason)
F10 rotate off (ditto)
ESC exit the program
ALT-F4 exit the program