home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex097.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
635b
|
21 lines
// Example: 097 from Library Reference
#include "..\3D-Ware\dddware.h"
short main(void)
{
dddLoadColors("EXAMPLE.COL"); // Load in the color palette called 'example.col' to 'standardpal'.
dddInitVideo();
dddSetPal(dddstandardpal);
dddInit3d();
dddInitKeybd();
while (!dddkeycode)
{
dddHorizon(0,0); // Draw a horizon as a backdrop.
dddPrint7(2,2,10,"PRESS ANY KEY TO EXIT"); // Color 2, top left of screen.
dddScreenSwap();
}
dddRestoreKeybd();
dddRestoreVideo();
dddClose3d();
return 0;
}