home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1995 September / PCPRO2_995.ISO / virtek / dos / libex / libex027.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-16  |  638 b   |  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.