home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex137.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
700b
|
19 lines
// Example: 137 from Library Reference
#include "..\3D-Ware\dddware.h"
short VXangle=0, VYangle=0, VZangle=0;
short main(void)
{
dddInitAll();
dddSetClipArea(100,199,50,150); // Set up the normal clipping variables.
dddSetHorizonClip(100,199,50,150,100); // Set up the horizon specific clipping values.
while (!dddkeycode)
{
VXangle+=0x40; // Rotate around the Xangle.
VZangle+=0x40; // Rotate around the Zangle.
dddHorizon(VXangle, VZangle); // Draw the horizon using the clipping area we set up.
dddScreenSwap();
}
dddRestoreAll();
return 0;
}