home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex137.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  700b  |  19 lines

  1.                                          // Example: 137 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short    VXangle=0, VYangle=0, VZangle=0;
  4. short  main(void)
  5. {
  6.   dddInitAll();
  7.   dddSetClipArea(100,199,50,150);        // Set up the normal clipping variables.
  8.   dddSetHorizonClip(100,199,50,150,100); // Set up the horizon specific clipping values.
  9.   while  (!dddkeycode)
  10.   {
  11.     VXangle+=0x40;                       // Rotate around the Xangle.
  12.     VZangle+=0x40;                       // Rotate around the Zangle.
  13.     dddHorizon(VXangle, VZangle);        // Draw the horizon using the clipping area we set up.
  14.     dddScreenSwap();
  15.   }
  16.   dddRestoreAll();
  17.   return 0;
  18. }
  19.