home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex144.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
630b
|
20 lines
// Example: 144 from Library Reference
#include "..\3D-Ware\dddware.h"
short count;
char fname[]={"EXAMPLE.LBM"}; // The IFF format file we want the palette from.
short main(void)
{
dddReadIffPalette(fname); // Read in the required palette to 'ddduserpal'.
dddInitVideo();
dddSetPal(ddduserpal); // Set the palette from 'ddduserpal'.
dddInit3d();
for (count=0; count<200; count++)
{
dddHoriFade(0,0); // This will show off the new palette.
dddScreenSwap();
}
dddClose3d();
dddRestoreVideo();
return 0;
}