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

  1.                                   // Example: 060 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. void main(void)
  4. {
  5.   dddInitAll();
  6.   dddSetDefaultMouseCursor();
  7.   dddCls();
  8.   dddBox(2,10,10,310,190);
  9.   dddBox(3,20,20,300,180);
  10.   dddBox(4,30,30,290,170);
  11.   dddPrint7(11,60,97,"PRESS ANY KEY TO EXIT");
  12.   dddScreenSwap();
  13.   dddSetLogbase2CurrentDisplay(); // Draw to the Viewable screen.
  14.   while  (!dddkeycode)
  15.   {
  16.     dddHideGraphicsMouse();       // Replace the saved background.
  17.     dddReadMousePosition();
  18.     dddShowGraphicsMouse();       // Draw the mouse cursor.
  19.     dddVsync();
  20.   }
  21.   dddRestoreAll();
  22. }
  23.