home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1995 September / PCPRO2_995.ISO / virtek / dos / libex / libex108.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-16  |  445 b   |  20 lines

  1.                             // Example: 108 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short  count;
  4. char   fname[]={"EXAMPLE.PCX"};
  5. short  main(void)
  6. {
  7.   dddReadPcxPalette(fname); // This reads in the color palette.
  8.   dddInitVideo();
  9.   dddSetPal(ddduserpal);
  10.   dddInit3d();
  11.   for  (count=0; count<200; count++)
  12.   {
  13.     dddHoriFade(0,0);
  14.     dddScreenSwap();
  15.   }
  16.   dddRestoreVideo();
  17.   dddClose3d();
  18.   return 0;
  19. }
  20.