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

  1.                                                       // Example: 030 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short  Poly[]={6, 2,4,75,50,76,50,100,100,50,100};    // The style is style 6, palette color 2,  and 4 pairs of
  4.                                                       // points.
  5. short  col=0, x=0 ,y=0;
  6. short  main(void)
  7. {
  8.   dddInitAll();
  9.   while  (!dddkeycode)
  10.   {
  11.     dddCls();
  12.     dddDrawSpecialPoly(Poly);                         // Draw the patterned polygon.
  13.     dddScreenSwap();
  14.   }
  15.   dddRestoreAll();
  16.   return 0;
  17. }
  18.