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

  1.                                          // Example: 024 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short     VXangle=0x100, VYangle=0, VZangle=0, count=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.   dddSetDotGrid(159,99,160,100);         // Set the dotgrid for the 320*200 screen.
  10.   dddSetViewPos16(0,-400,0);
  11.   for  (count=0; count<200; count++)
  12.   {
  13.     VYangle+=0x40;                       // Nice and slow rotation.
  14.     VZangle+=0x40;                       // Nice and slow rotation.
  15.     dddHorizon(VXangle, VZangle);        // Draw a horizon.
  16.     dddDotGrid();                        // Draw the dot grid.
  17.     dddScreenSwap();
  18.   }
  19.   dddRestoreAll();
  20.   return 0;
  21. }
  22.