home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex093.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
603b
|
21 lines
// Example: 093 from Library Reference
#include "..\3D-Ware\dddware.h"
short count;
short main(void)
{
dddLoadColors("EXAMPLE.COL"); // Load in the color palette called 'example.col' to 'standardpal'.
dddInitVideo();
dddSetPal(dddstandardpal);
dddInit3d();
for (count=0; count<199; count++)
{
dddPlot(count,count,count); // Plot this pixel to the 1st screen.
dddScreenSwap();
dddPlot(count,count,count); // Plot this pixel to the 2nd screen.
dddScreenSwap();
}
dddRestoreVideo();
dddClose3d();
return 0;
}