home *** CD-ROM | disk | FTP | other *** search
- // Example: 018 from Library Reference
- #include "..\3D-Ware\dddware.h"
- short Xpos=0, Ypos=50;
- short width=5;
- short height=5;
- char image_data[]={ 1,1,0,0,0,
- 0,0,0,1,1,
- 0,7,0,7,0,
- 0,0,2,0,0,
- 0,7,0,7,0 };
- short main(void)
- {
- dddInitAll();
- while (!dddkeycode)
- {
- dddCls(); // Clear the graphics screen.
- Xpos++;
- // Write the image data to the graphics viewport.
- dddCopyMemory2Logbase(Xpos,Ypos,width,height,image_data);
- dddPrint7(2,80,0,"PRESS ANY KEY TO EXIT"); // Print an information message for the user.
- dddScreenSwap(); // Flip the real screen and the dummy screen.
- }
- dddRestoreAll();
- return 0; // Bye.
- }
-