home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex010.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
785b
|
22 lines
// Example: 010 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();
dddSetClipArea(40, 250, 20, 70);
for (count=0; count<200; count++)
{
dddClipDrawLine(count, 0, 0, 319, count); // Draw to the first screen.
dddScreenSwap(); // Display this first screen.
dddClipDrawLine(count, 0, 0, 319, count); // Draw to the second screen.
dddScreenSwap(); // Display this second screen.
}
dddRestoreVideo();
dddClose3d();
return 0;
}