home *** CD-ROM | disk | FTP | other *** search
- // Example: 024 from Library Reference
- #include "..\3D-Ware\dddware.h"
- short VXangle=0x100, VYangle=0, VZangle=0, count=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.
- dddSetDotGrid(159,99,160,100); // Set the dotgrid for the 320*200 screen.
- dddSetViewPos16(0,-400,0);
- for (count=0; count<200; count++)
- {
- VYangle+=0x40; // Nice and slow rotation.
- VZangle+=0x40; // Nice and slow rotation.
- dddHorizon(VXangle, VZangle); // Draw a horizon.
- dddDotGrid(); // Draw the dot grid.
- dddScreenSwap();
- }
- dddRestoreAll();
- return 0;
- }
-