home *** CD-ROM | disk | FTP | other *** search
- // Example: 005 from Library Reference
- #include "..\3D-Ware\dddware.h"
- short Xpos, Ypos, X1pos, Y1pos;
- short X, Y, X1, Y1;
- short count;
- short main(void)
- {
- dddInitAll(); // Initialise the 3D-Ware functions.
- X = Y = 0;
- X1 = Y1 = 10;
- for (count=0; count<180; count++) // Loop so that we can draw a few boxes.
- {
- Xpos = X+count; // Set up left of the box.
- X1pos = X1+count; // Set up the right of the box.
- Ypos = Y+count; // Set up the top of the box
- Y1pos = Y1+count; // Set up the bottom of the box.
- dddBox(count, Xpos, Ypos, X1pos, Y1pos); // Draw the box on the dummy screen.
- dddScreenSwap(); // Swap the screens so we can see the box.
- dddBox(count, Xpos, Ypos, X1pos, Y1pos); // Draw the box on the dummy screen.
- dddScreenSwap(); // Swap the screens so we can see the box.
- }
- dddRestoreAll(); // Clean up for exit.
- return 0; // Sayonarra.
- }
-