home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex011.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
868b
|
25 lines
// Example: 011 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(20,300,0,199); // Set up the clipping rectangle.
for (count=0; count<250; count++)
{
// Draw to the first screen.
dddClipDrawStipLine(count, 0x5555, 0, count, 319, count);
dddScreenSwap(); // Display this first screen.
// Draw to the second screen.
dddClipDrawStipLine(count, 0xaaaa, 0, count, 319, count);
dddScreenSwap(); // Display this second screen.
}
dddRestoreVideo();
dddClose3d();
return 0;
}