home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 10-07.C < prev    next >
Text File  |  1995-01-20  |  520b  |  36 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. char hello[] =
  6. {
  7.    't',1, 'h',2, 'e',3, 'r',4, 'e',5,
  8.    'h',1, 'e',2, 'l',3, 'l',4, 'o',5
  9. };
  10.  
  11. char image[] =
  12. {
  13.    'T',0, 0,1, 0,1, 0,1, 0,1,
  14.    'H',0, 0,1, 0,1, 0,1, 0,1
  15. };
  16.  
  17. void main()
  18. {
  19.    int old_mode;
  20.  
  21.    fg_initpm();
  22.    old_mode = fg_getmode();
  23.    fg_setmode(3);
  24.    fg_cursor(0);
  25.  
  26.    fg_locate(12,37);
  27.    fg_drwimage(hello,10,2);
  28.    fg_waitkey();
  29.  
  30.    fg_drwimage(image,10,2);
  31.    fg_waitkey();
  32.  
  33.    fg_setmode(old_mode);
  34.    fg_reset();
  35. }
  36.