home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex061.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
1KB
|
24 lines
// Example: 061 from Library Reference
#include "..\3D-Ware\dddware.h"
short VXangle=0, VYangle=0, VZangle=0;
short count;
short main(void)
{
dddLoadColors("EXAMPLE.COL"); // Load in the color palette called 'example.col' to 'standardpal'.
dddInitVideo(); // Initialise the mode 19 (0x13) video screen.
dddSetPal(dddstandardpal); // Set the VGA color resisters.
dddInit3d(); // Initialise the 3D-Ware graphics code.
dddSetClipArea(0,319,0,199); // Set up the clipping area for the full screen.
dddSetHorizonClip(0,319,0,199,100); // Set up the horizon clipping area for the full screen.
for (count=0; count<100; count++)
{
VXangle+=0x40; // Rotate slowly around the Xangle.
VZangle+=0x40; // Rotate slowly around the Zangle.
dddHoriFade(VXangle, VZangle); // Dump a banded horizon to the screen.
dddScreenSwap();
}
dddRestoreVideo();
dddClose3d();
return 0; // Ciao.
}