home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex015.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
688b
|
26 lines
// Example: 015 from Library Reference
#include "..\3D-Ware\dddware.h"
short Xpos=0, Ypos=0;
short width=20;
short height=8;
char image_buffer[8*20];
short main(void)
{
dddInitAll();
while (!dddkeycode)
{
dddCls(); // Clear the graphics screen.
Xpos++;
if (Xpos>319)
{
Xpos=0;
}
dddPrint7(2,0,0,"PRESS ANY KEY TO EXIT THIS EXAMPLE.");
dddCopyLogbase2Memory(Xpos,0,width,height,image_buffer);
dddCopyMemory2Logbase(Xpos,Ypos+10,width,height,image_buffer);
dddScreenSwap(); // Flip the real screen and the dummy screen.
}
dddRestoreAll();
return 0; // Bye.
}