This program demonstrates the use of OpenGL transformations. It draws five colored rings in the display window, each with a random position and orientation. It then gradually rotates and moves the rings towards their final configuration.
When the user presses the space bar, a new set of rings is displayed, with a different random position and orientation, and these move towards the final configuration. Each time the space bar is pressed, the rate at which the rings rotate and move is randomized so that each display is different.
USAGE:
rings [-sb] [-ci] [-h]
While running, press the space bar to toggle animation on and off, press q to quit.
By using -sb, you can see the advantage of double-buffering as the single-buffered display is sometimes streaky. -ci uses at most 256 colors rather than the full color depth.
For more information, see Advanced Graphics Using OpenGL in Using Intel Visual Fortran to Create and Build Windows-Based Applications
Minimum requirements include a PC based on an IA-32 or Intel® 64 architecture processor supporting the Intel® Streaming SIMD Extensions 2 (Intel® SSE2) instructions (Intel® Pentium® 4 processor or later, or compatible non-Intel processor), and supported versions of the Microsoft Windows* operating system, Microsoft Visual Studio*, and the Intel® Visual Fortran compiler. Refer to the Intel® Parallel Studio XE product Release Notes for details on the complete system requirements.
The sample is provided as a Microsoft Visual Studio* solution and also
contains a command-line build script build.bat file. The build.bat file
accepts an optional command-line argument from the following list: