home *** CD-ROM | disk | FTP | other *** search
- // Example: 144 from Library Reference
- #include "..\3D-Ware\dddware.h"
- short count;
- char fname[]={"EXAMPLE.LBM"}; // The IFF format file we want the palette from.
- short main(void)
- {
- dddReadIffPalette(fname); // Read in the required palette to 'ddduserpal'.
- dddInitVideo();
- dddSetPal(ddduserpal); // Set the palette from 'ddduserpal'.
- dddInit3d();
- for (count=0; count<200; count++)
- {
- dddHoriFade(0,0); // This will show off the new palette.
- dddScreenSwap();
- }
- dddClose3d();
- dddRestoreVideo();
- return 0;
- }
-