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

  1.                                     // Example: 144 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short   count;
  4. char    fname[]={"EXAMPLE.LBM"};    // The IFF format file we want the palette from.
  5. short  main(void)
  6. {
  7.   dddReadIffPalette(fname);         // Read in the required palette to 'ddduserpal'.
  8.   dddInitVideo();
  9.   dddSetPal(ddduserpal);            // Set the palette from 'ddduserpal'.
  10.   dddInit3d();
  11.   for  (count=0; count<200; count++)
  12.   {
  13.     dddHoriFade(0,0);               // This will show off the new palette.
  14.     dddScreenSwap();
  15.   }
  16.   dddClose3d();
  17.   dddRestoreVideo();
  18.   return 0;
  19. }
  20.