home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex142.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
799b
|
26 lines
// Example: 142 from Library Reference
#include "..\3D-Ware\dddware.h"
void main(void)
{
dddInitAll();
dddSetDefaultMouseCursor();
dddFillScreen(203);
dddMedPrintC(11,17,"Press ESC Key to exit.");
dddScreenSwap();
dddSetLogbase2CurrentDisplay(); // Draw to the viewable screen.
dddSetMouseClip(48,152,50,150);
dddmouse_x = 100;
dddmouse_y = 100;
while (dddkeycode!=_ESC)
{
dddLineBox(11,47,49,152,151); // Make a box around the mouse clip area.
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();
}