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

  1.                                   // Example: 026 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 SPACE AND MOVE MOUSE");
  12.   dddScreenSwap();
  13.   dddSetLogbase2CurrentDisplay(); // Draw to the viewable screen.
  14.   while  (dddkeycode!=_ESC)
  15.   {
  16.     if (dddkeypressed[_SPACE])
  17.     {
  18.       dddHideGraphicsMouse();
  19.     }
  20.     dddReadMousePosition();       // Read any changes to the mouse position.
  21.     dddDrawGraphicsMouse();       // Draw the mouse at (mouse_x,mouse_y)
  22.     dddVsync();                   // Wait for a vertical sync.
  23.   }
  24.   dddRestoreAll();
  25. }
  26.