home *** CD-ROM | disk | FTP | other *** search
- // Example: 010 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();
- dddSetClipArea(40, 250, 20, 70);
- for (count=0; count<200; count++)
- {
- dddClipDrawLine(count, 0, 0, 319, count); // Draw to the first screen.
- dddScreenSwap(); // Display this first screen.
- dddClipDrawLine(count, 0, 0, 319, count); // Draw to the second screen.
- dddScreenSwap(); // Display this second screen.
- }
- dddRestoreVideo();
- dddClose3d();
- return 0;
- }
-