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>init_video()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INIT_VIDEO()
   Initializes a stack to hold portions of the screen.

   Syntax
         INIT_VIDEO(nUsedVideoPages,cSystemMemory)

   Arguments
         nUsedVideoPages   Number of video pages you are using for display.
         cSystemMemory     String variable that will be used to hold
                           video data.

   Returns
         None

   Description
   Note: You must be in graphics mode, not text mode, when first issuing
         this function.

         INIT_VIDEO() is used to initialize a stack that can hold up to 10
         portions of the screen in a buffer. The video images can be held
         in unused portions of the video screen or conventional memory.

         With the first argument, you pass the number of video pages you are
         using so that this command will not overwrite existing video pages
         that you are using. Most likely you are using 1 video page unless
         you are using the special video paging function VIDEO_PAGE() to
         write to the second video page.

         The second parameter is the amount of conventional memory you wish
         to use for the images. You can create a Clipper variable to hold
         the video data and pass it to this function. Otherwise, you can
         simply specify a 0 and this function will use the available
         video and Clipper memory.

         If you are running in CGA mode (even on an EGA/VGA system) then you
         can't use any of the video memory.

   Examples

               M_video = SPACE(20000)
               INIT_VIDEO(1,M_video)

See Also: POP_PIC() PUSH_PIC()

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