home *** CD-ROM | disk | FTP | other *** search
- // Example: 093 from Library Reference
- #include "..\3D-Ware\dddware.h"
- short count;
- short main(void)
- {
- dddLoadColors("EXAMPLE.COL"); // Load in the color palette called 'example.col' to 'standardpal'.
- dddInitVideo();
- dddSetPal(dddstandardpal);
- dddInit3d();
- for (count=0; count<199; count++)
- {
- dddPlot(count,count,count); // Plot this pixel to the 1st screen.
- dddScreenSwap();
- dddPlot(count,count,count); // Plot this pixel to the 2nd screen.
- dddScreenSwap();
- }
- dddRestoreVideo();
- dddClose3d();
- return 0;
- }
-