home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex029.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  596b  |  17 lines

  1.                              // Example: 029 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3.                              // Color 2, 4 points, square clockwise poly.
  4. short    PolyCoords[] = {2,4,50,50,100,50,100,100,50,100};
  5. short  main(void)
  6. {
  7.   dddInitAll();
  8.   while  (!dddkeycode)       // Loop until a key is pressed.
  9.   {
  10.     dddCls();                // Clear the graphics screen.
  11.     dddDrawPoly(PolyCoords); // Draw the polygon.
  12.     dddScreenSwap();         // Flip the real screen and the dummy screen.
  13.   }
  14.   dddRestoreAll();
  15.   return 0;                  // Bye.
  16. }
  17.