home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex015.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  688b  |  26 lines

  1.                      // Example: 015 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short    Xpos=0, Ypos=0;
  4. short    width=20;
  5. short    height=8;
  6. char     image_buffer[8*20];
  7. short  main(void)
  8. {
  9.   dddInitAll();
  10.   while  (!dddkeycode)
  11.   {
  12.     dddCls();        // Clear the graphics screen.
  13.     Xpos++;
  14.     if (Xpos>319)
  15.     {
  16.       Xpos=0;
  17.     }
  18.     dddPrint7(2,0,0,"PRESS ANY KEY TO EXIT THIS EXAMPLE.");
  19.     dddCopyLogbase2Memory(Xpos,0,width,height,image_buffer);
  20.     dddCopyMemory2Logbase(Xpos,Ypos+10,width,height,image_buffer);
  21.     dddScreenSwap(); // Flip the real screen and the dummy screen.
  22.   }
  23.   dddRestoreAll();
  24.   return 0;          // Bye.
  25. }
  26.