home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / windows / tegltc.zip / SAMPROGS / SAMC0406.C < prev    next >
Text File  |  1990-05-13  |  473b  |  35 lines

  1. /* samc0406.c */
  2.  
  3. #include "teglsys.h"
  4.  
  5. void main()
  6.   {
  7.     imagestkptr fs;
  8.     unsigned i;
  9.  
  10.     easytegl();
  11.  
  12.     pushimage(1,1,50,50);
  13.     shadowbox(1,1,50,50);
  14.     fs = stackptr;
  15.     showmouse();
  16.  
  17.     i = 20000;
  18.  
  19.     do
  20.       {
  21.     --i;
  22.     if (i == 10000)
  23.       hideimage(fs);
  24.     if (i == 0)
  25.       {
  26.          showimage(fs,fs->x,fs->y);
  27.          i = 20000;
  28.       }
  29.     }
  30.     while( mouse_buttons == 0 );
  31.     if (i <= 10000)
  32.       showimage(fs,fs->x,fs->y);
  33.  
  34.   }
  35.