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

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main(void)
  7. {
  8.    int frames;
  9.    int status;
  10.    char context[16];
  11.  
  12.    fg_initpm();
  13.    fg_setmode(19);
  14.  
  15.    status = fg_flicopen("GLASS.FLI",context);
  16.    if (status == 0)
  17.    {
  18.       do
  19.       {
  20.          frames = fg_flicplay(context,1,1);
  21.          fg_waitkey();
  22.       }
  23.       while (frames > 0);
  24.       fg_flicdone(context);
  25.    }
  26.  
  27.    fg_setmode(3);
  28.    fg_reset();
  29.  
  30.    if (status == -1)
  31.       printf("GLASS.FLI not found.\n");
  32.    else if (status == -2)
  33.       printf("GLASS.FLI is not an FLI or FLC file.\n");
  34. }
  35.