home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex037.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
1KB
|
19 lines
// Example: 037 from Library Reference
#include "..\3D-Ware\dddware.h"
short VXpos=0, VYpos=0, VZpos=0;
short VXangle=0, VYangle=0, VZangle=0;
short main(void)
{
dddLoadColors("EXAMPLE.COL"); // Load in the color palette called 'example.col' to 'standardpal'.
dddInitVideo(); // Sets up video to mode 19 VGA 320*200 256 cols.
dddInitKeybd();
dddSetPal(dddstandardpal); // Set up the palette.
dddInit3d(); // MUST be before any calls to 3D libraries !!!
dddSetViewPos16(VXpos,VYpos,VZpos); // Set the viewers angles in the 3D world.
dddSetViewAngles(VXangle,VYangle,VZangle); // Set the viewers position in the 3D world.
dddSetClipArea(0,319,0,199); // Set up clipping boundaries.
// Fatal error so quit with a message.
dddFatalError("* FATAL * I forgot what I was doing so let's quit now.");
return 0; // Does not get to here !!!.
}