home *** CD-ROM | disk | FTP | other *** search
- // Example: 137 from Library Reference
- #include "..\3D-Ware\dddware.h"
- short VXangle=0, VYangle=0, VZangle=0;
- short main(void)
- {
- dddInitAll();
- dddSetClipArea(100,199,50,150); // Set up the normal clipping variables.
- dddSetHorizonClip(100,199,50,150,100); // Set up the horizon specific clipping values.
- while (!dddkeycode)
- {
- VXangle+=0x40; // Rotate around the Xangle.
- VZangle+=0x40; // Rotate around the Zangle.
- dddHorizon(VXangle, VZangle); // Draw the horizon using the clipping area we set up.
- dddScreenSwap();
- }
- dddRestoreAll();
- return 0;
- }
-