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

  1.                                               // Example: 027 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short    count;
  4. short  main(void)
  5. {
  6.   dddInitVideo();
  7.   dddSetPal(dddstandardpal);
  8.   dddInit3d();
  9.   
  10.   for  (count=0; count<200; count++)
  11.   {
  12.     dddDrawLine(count, 0, count, 319, count); // Draw to the first screen.
  13.     dddScreenSwap();                          // Display this first screen.
  14.     dddDrawLine(count, 0, count, 319, count); // Draw to the second screen.
  15.     dddScreenSwap();                          // Display this second screen.
  16.   }
  17.   dddRestoreVideo();
  18.   dddClose3d();
  19.   return 0;
  20. }
  21.