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

  1.                                                // Example: 018 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. short    Xpos=0, Ypos=50;
  4. short    width=5;
  5. short    height=5;
  6. char     image_data[]={  1,1,0,0,0,
  7.            0,0,0,1,1,
  8.            0,7,0,7,0,
  9.            0,0,2,0,0,
  10.            0,7,0,7,0  };
  11. short  main(void)
  12. {
  13.   dddInitAll();
  14.   while  (!dddkeycode)
  15.   {
  16.     dddCls();                                  // Clear the graphics screen.
  17.     Xpos++;
  18.                                                // Write the image data to the graphics viewport.
  19.     dddCopyMemory2Logbase(Xpos,Ypos,width,height,image_data);
  20.     dddPrint7(2,80,0,"PRESS ANY KEY TO EXIT"); // Print an information message for the user.
  21.     dddScreenSwap();                           // Flip the real screen and the dummy screen.
  22.   }
  23.   dddRestoreAll();
  24.   return 0;                                    // Bye.
  25. }
  26.