home *** CD-ROM | disk | FTP | other *** search
- // Example: 037 from Library Reference
- #include "..\3D-Ware\dddware.h"
- short VXpos=0, VYpos=0, VZpos=0;
- short VXangle=0, VYangle=0, VZangle=0;
- short main(void)
- {
- dddLoadColors("EXAMPLE.COL"); // Load in the color palette called 'example.col' to 'standardpal'.
- dddInitVideo(); // Sets up video to mode 19 VGA 320*200 256 cols.
- dddInitKeybd();
- dddSetPal(dddstandardpal); // Set up the palette.
- dddInit3d(); // MUST be before any calls to 3D libraries !!!
- dddSetViewPos16(VXpos,VYpos,VZpos); // Set the viewers angles in the 3D world.
- dddSetViewAngles(VXangle,VYangle,VZangle); // Set the viewers position in the 3D world.
- dddSetClipArea(0,319,0,199); // Set up clipping boundaries.
- // Fatal error so quit with a message.
- dddFatalError("* FATAL * I forgot what I was doing so let's quit now.");
- return 0; // Does not get to here !!!.
- }
-