home *** CD-ROM | disk | FTP | other *** search
- // 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.
- }
-