Page 52 OpenGL Super (Web hosting bandwidth) Bible! It may not
Page 52 OpenGL Super Bible! It may not be the most interesting OpenGL program in existence, but shortest.c demonstrates the very basics of getting a window up using the AUX library and it shows you how to specify a color and clear the window. Next we want to spruce up our program by adding some more AUX library and OpenGL functions. Drawing Shapes with OpenGL The shortest.c program made an empty window with a blue background. Let s do some drawing in the window. In addition, we want to be able to move and resize the window so that it behaves more like a Windows window. We will also dispense with using getch() to determine when to terminate the program. In Listing 3-2 you can see the modifications. The first change you ll notice is in the headers. The conio.h file is no longer included because we aren t using getch() or cprintf() anymore. Listing 3-2 A friendlier OpenGL program // friendly.c // A friendlier OpenGL program #include
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision virtual web hosting services