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

  1.                                  // Example: 011 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(20,300,0,199);  // Set up the clipping rectangle.
  11.   
  12.   for  (count=0; count<250; count++)
  13.   {
  14.                                  // Draw to the first screen.
  15.     dddClipDrawStipLine(count, 0x5555, 0, count, 319, count);
  16.     dddScreenSwap();             // Display this first screen.
  17.                                  // Draw to the second screen.
  18.     dddClipDrawStipLine(count, 0xaaaa, 0, count, 319, count);
  19.     dddScreenSwap();             // Display this second screen.
  20.   }
  21.   dddRestoreVideo();
  22.   dddClose3d();
  23.   return 0;
  24. }
  25.