home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex029.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
596b
|
17 lines
// Example: 029 from Library Reference
#include "..\3D-Ware\dddware.h"
// Color 2, 4 points, square clockwise poly.
short PolyCoords[] = {2,4,50,50,100,50,100,100,50,100};
short main(void)
{
dddInitAll();
while (!dddkeycode) // Loop until a key is pressed.
{
dddCls(); // Clear the graphics screen.
dddDrawPoly(PolyCoords); // Draw the polygon.
dddScreenSwap(); // Flip the real screen and the dummy screen.
}
dddRestoreAll();
return 0; // Bye.
}