home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex104.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
621b
|
20 lines
// Example: 104 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.
dddInitVideo();
dddSetPal(ddduserpal); // Set the palette from the 'userpal' array.
dddInit3d();
for (count=0; count<200; count++)
{
dddHoriFade(0,0); // This will show off the new palette.
dddScreenSwap();
}
dddRestoreVideo();
dddClose3d();
return 0;
}