home *** CD-ROM | disk | FTP | other *** search
- // Example: 029 from Library Reference
- #include "..\3D-Ware\dddware.h"
- // Color 2, 4 points, square clockwise poly.
- short PolyCoords[] = {2,4,50,50,100,50,100,100,50,100};
- short main(void)
- {
- dddInitAll();
- while (!dddkeycode) // Loop until a key is pressed.
- {
- dddCls(); // Clear the graphics screen.
- dddDrawPoly(PolyCoords); // Draw the polygon.
- dddScreenSwap(); // Flip the real screen and the dummy screen.
- }
- dddRestoreAll();
- return 0; // Bye.
- }
-