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

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int old_mode;
  8.  
  9.    fg_initpm();
  10.    old_mode = fg_getmode();
  11.    fg_setmode(18);
  12.    fg_setcolor(9);
  13.    fg_fillpage();
  14.    fg_setcolor(14);
  15.  
  16.    fg_move(0,0);
  17.    fg_justify(-1,1);
  18.    fg_print("Fastgraph",9);
  19.    fg_move(320,0);
  20.    fg_justify(0,1);
  21.    fg_print("Fastgraph",9);
  22.    fg_move(639,0);
  23.    fg_justify(1,1);
  24.    fg_print("Fastgraph",9);
  25.  
  26.    fg_move(0,240);
  27.    fg_justify(-1,0);
  28.    fg_print("Fastgraph",9);
  29.    fg_move(320,240);
  30.    fg_justify(0,0);
  31.    fg_print("Fastgraph",9);
  32.    fg_move(639,240);
  33.    fg_justify(1,0);
  34.    fg_print("Fastgraph",9);
  35.  
  36.    fg_move(0,479);
  37.    fg_justify(-1,-1);
  38.    fg_print("Fastgraph",9);
  39.    fg_move(320,479);
  40.    fg_justify(0,-1);
  41.    fg_print("Fastgraph",9);
  42.    fg_move(639,479);
  43.    fg_justify(1,-1);
  44.    fg_print("Fastgraph",9);
  45.    fg_waitkey();
  46.  
  47.    fg_setmode(old_mode);
  48.    fg_reset();
  49. }
  50.