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

  1.                                               // Example: 010 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short    count;
  4. short  main(void)
  5. {
  6.   dddLoadColors("EXAMPLE.COL");               // Load in the color palette called 'example.col' to 'standardpal'.
  7.   dddInitVideo();
  8.   dddSetPal(dddstandardpal);
  9.   dddInit3d();
  10.   dddSetClipArea(40, 250, 20, 70);
  11.   for  (count=0; count<200; count++)
  12.   {
  13.     dddClipDrawLine(count, 0, 0, 319, count); // Draw to the first screen.
  14.     dddScreenSwap();                          // Display this first screen.
  15.     dddClipDrawLine(count, 0, 0, 319, count); // Draw to the second screen.
  16.     dddScreenSwap();                          // Display this second screen.
  17.   }
  18.   dddRestoreVideo();
  19.   dddClose3d();
  20.   return 0;
  21. }
  22.