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

  1.                                   // Example: 142 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. void main(void)
  4. {
  5.   dddInitAll();
  6.   dddSetDefaultMouseCursor();
  7.   dddFillScreen(203);
  8.   dddMedPrintC(11,17,"Press ESC Key to exit.");
  9.   dddScreenSwap();
  10.   dddSetLogbase2CurrentDisplay(); // Draw to the viewable screen.
  11.   dddSetMouseClip(48,152,50,150);
  12.  
  13.   dddmouse_x = 100;
  14.   dddmouse_y = 100;
  15.  
  16.   while  (dddkeycode!=_ESC)
  17.   {
  18.     dddLineBox(11,47,49,152,151); // Make a box around the mouse clip area.
  19.     dddHideGraphicsMouse();
  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.