Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>fg_init_null - fg_init_8514a</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
fg_init_null - fg_init_8514a
.
   Not all of this group of functions are currently supported under
   OS/2. Please refer to the readme.fg file for more information.

Usage

   #include <fg.h>
   Function Prototype              -- Setting

   int far fg_init_all(void);
   int far fg_init_cga(void)               CGAHIRES
   int far fg_init_cgamedres(void)         CGAMEDRES

   int far fg_init_egacolor(void);         EGACOLOR
   int far fg_init_egaecd(void);           EGAECD
   int far fg_init_egamono(void);          EGAMONO
   int far fg_init_egalowres(void);        EGALOWRES
   int far fg_init_evgahires(void);        EVGAHIRES
   int far fg_init_herc(void);             HERC or HERCFULL
   int far fg_init_null(void);
   int far fg_init_orchidprohires(void);   ORCHIDPROHIRE
   int far fg_init_paradisehires(void);    PARADISEHIRES
   int far fg_init_toshiba(void);          TOSHIBA
   int far fg_init_tridenthires(void);     TRIDENTHIRES
   int far fg_init_vegavgahires(void);     VEGAVGAHIRES
   int far fg_init_vesa6a(void);           VESA6A
   int far fg_init_vesa2(void);            VESA2
   int far fg_init_vga11(void);            VGA11
   int far fg_init_vga12(void);            VGA12
   int far fg_init_vga13(void);            VGA13
   int far fg_init_8514a(void)             8514A

Description


   Initialize Graphics Display Device. If not already in graphics mode save
   current mode of display device, so it can be restored by fg_term. Put
   display device into its graphics mode. Set the current display page to
   page  0. Store the characteristics of the display device into the global
   variables. On output fg.display is set to the return value, fg.activepage
   and  fg_displaypage are set to 0. Page 0 is set to FG_BLACK.

Return Value

   FG_XXXX Display type that was opened. FG_NULL (0) if failure.

   fg_init_all()    will attempt to determine the type of display graphics
                    that is available and  open that display device. The
                    environment variable FG_DISPLAY=XXXXX will  override.
                    The environment variable override will be primarily
                    useful for  non-standard clone boards, or for boards
                    that emulate multiple boards.  fg_init_all is obsolete
                    but still exists for backward compatibility, use
                    fg_init for new programs. fg_init_all may not exist in

                    future releases.

   fg_init_cga()    will assume that the graphics device is a CGA board and
                    put it in 640 x  200 x 2 color mode (mode 0x6).

   fg_init_cgamedres() will assume that the graphics device is a CGA board
                    and put it in 320 x  200 x 4 color mode (mode 0x4).

   fg_init_egacolor() will assume that the graphics device is a EGA board
                    with a IBM color  monitor (not enhanced color monitor)
                    and put it into 640 x 200 x 16 color  mode (mode 0xE).

   fg_init_egaecd() will assume that the graphics device is a EGA board
                    with a enhanced color  monitor and put it into 640 x 350
                    x 16 color mode (mode 0x10).

   fg_init_egamono() will assume that the graphics device is a EGA board
                    with a IBM  monochrome monitor and put it into 640 x 350
                    x 4 color mode (mode 0xF).


   fg_init_egalowres() will assume that the graphics device is a EGA board
                    with a IBM color  monitor and put it into 320 x 200 x 16
                    color mode (mode 0xD).

   fg_init_evgahires() will assume that the graphics device is a Everex
                    EVGA board with a  multifrequency monitor and put it
                    into 800 x 600 x 16 color mode (mode  0x70).

   fg_init_herc()   will assume that the graphics device is a Hercules
                    board. It will determine  if there are 1 or 2 pages
                    available and put it into 720 x 348 x 2 color mode.

   fg_init_null()   is the bit-bucket graphics device. It always returns
                    FG_NULL.

   fg_init_orchidprohires() will assume the the graphics device is a
                    Orchid Prodesigner VGA board  and put it into 800 x 600
                    x 16 color mode (mode 0x29).

   fg_init_paradisehires() will assume that the graphics device is a

                    Paradise VGA board and put it  into 800 x 600 x 16 color
                    mode (mode 0x58).

   fg_init_toshiba() will assume that the graphics device is a Toshiba
                    3100 and put it into 640  x 400 x 2 color mode (mode
                    0x74).

   fg_init_tridenthires() will assume that the graphics device is a
                    Trident VGA board and put it  into 800 x 600 x 16 color
                    mode (mode 0x5B).

   fg_init_vegavgahires() will assume that the graphics device is a Video
                    7 VEGA VGA board and  put it into 800 x 600 x 16 color
                    mode (mode 0x62).

   fg_init_vesa6a() will assume that the graphics device is a VESA
                    compatible VGA board and  put it into 800 x 600 x 16
                    color mode (mode 0x6A).

   fg_init_vesa2()  will assume that the graphics device is a VESA

                    compatible VGA board and put it into 800 x 600 x 16
                    color mode (mode 0x102).

   fg_init_vga11()  will assume that the graphics device is a VGA board and
                    put it into 640 x 480 x 2 color mode (mode 0x11).

   fg_init_vga12()  will assume that the graphics device is a VGA board and
                    put it into 640 x 480 x 16 color mode (mode 0x12).

   fg_init_vga13()  will assume that the graphics device is a VGA board and
                    put it into 320 x 200 x 256 color mode (mode 0x13).

   fg_init_8514a()  will assume that the graphics device is an IBM 8514A
                    and put it into graphics mode.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson