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

  1.                                     // Example: 104 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.
  8.   dddInitVideo();
  9.   dddSetPal(ddduserpal);            // Set the palette from the 'userpal' array.
  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.   dddRestoreVideo();
  17.   dddClose3d();
  18.   return 0;
  19. }
  20.