home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex005.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
1KB
|
25 lines
// Example: 005 from Library Reference
#include "..\3D-Ware\dddware.h"
short Xpos, Ypos, X1pos, Y1pos;
short X, Y, X1, Y1;
short count;
short main(void)
{
dddInitAll(); // Initialise the 3D-Ware functions.
X = Y = 0;
X1 = Y1 = 10;
for (count=0; count<180; count++) // Loop so that we can draw a few boxes.
{
Xpos = X+count; // Set up left of the box.
X1pos = X1+count; // Set up the right of the box.
Ypos = Y+count; // Set up the top of the box
Y1pos = Y1+count; // Set up the bottom of the box.
dddBox(count, Xpos, Ypos, X1pos, Y1pos); // Draw the box on the dummy screen.
dddScreenSwap(); // Swap the screens so we can see the box.
dddBox(count, Xpos, Ypos, X1pos, Y1pos); // Draw the box on the dummy screen.
dddScreenSwap(); // Swap the screens so we can see the box.
}
dddRestoreAll(); // Clean up for exit.
return 0; // Sayonarra.
}