home *** CD-ROM | disk | FTP | other *** search
- // Example: 026 from Library Reference
- #include "..\3D-Ware\dddware.h"
- void main(void)
- {
- dddInitAll();
- dddSetDefaultMouseCursor();
- dddCls();
- dddBox(2,10,10,310,190);
- dddBox(3,20,20,300,180);
- dddBox(4,30,30,290,170);
- dddPrint7(11,60,97,"PRESS SPACE AND MOVE MOUSE");
- dddScreenSwap();
- dddSetLogbase2CurrentDisplay(); // Draw to the viewable screen.
- while (dddkeycode!=_ESC)
- {
- if (dddkeypressed[_SPACE])
- {
- dddHideGraphicsMouse();
- }
- dddReadMousePosition(); // Read any changes to the mouse position.
- dddDrawGraphicsMouse(); // Draw the mouse at (mouse_x,mouse_y)
- dddVsync(); // Wait for a vertical sync.
- }
- dddRestoreAll();
- }
-