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

  1. /* samc04019.c */
  2.  
  3. #include "teglsys.h"
  4.  
  5.  
  6. void main()
  7.   {
  8.     imagestkptr fs1,fs2;
  9.  
  10.     easytegl();
  11.  
  12.     pushimage(1,1,100,100);
  13.     shadowbox(1,1,100,100);
  14.     fs1 = stackptr;
  15.  
  16.     pushimage(50,50,150,150);
  17.     shadowbox(50,50,150,150);
  18.     fs2 = stackptr;
  19.  
  20.     showmouse();
  21.     while(mouse_buttons == 0);
  22.  
  23.     hideimage(fs2);
  24.     unlinkfs(fs2);
  25.     linkunderfs(fs2,fs1);
  26.     showimage(fs2,fs2->x,fs2->y);
  27.  
  28.     while(mouse_buttons == 0);
  29.     abort_msg("");
  30.   }
  31.