Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>flip_init()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FLIP_INIT()
   Initializes parameters and allocates buffers to hold your data.

   Syntax
         nBIOSMode = FLIP_INIT()

   Arguments
         None

   Returns
         nBIOSMode    Returns a value for the BIOS mode if the initializaton
                      succeeded. If failed, it would return an error number:
                          -1 : Passing an incorrect number of parameters.
                          -2 : A buffer is already initialized.
                          -3 : Not enough free pool memory.
                          -4 : A non-supported video card is present.

   Description
         FLIP_INIT() performs an initialization of parameters used by FLIPPER
         functions. This function is executed one time only prior to
         use of any FLIPPER graphics functions in your program.

         FLIP_INIT() sets the screen mode based on the hardware settings.
         In some cases FLIPPER will not determine the correct mode and the
         graph will not display properly. See GRAPHMODE() to set the proper
         graphics mode.

   Examples

               M_ok = FLIP_INIT()       && Initialized FLIPPER for Clipper.
               IF M_ok = -1             && incorrect number of parameters
                  @ 23,0 SAY "Graphics initialization failed"
                  wait
                  exit
               ENDIF

See Also: BIOS_MODE() FREE_BUF() GRAPHMODE() INITDATA() VM_INIT()

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