Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b> overview of graphics system</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                         Overview of Graphics System

    There are many new graphics functions in C++. They are all in the
    library, GRAPHICS.LIB.  These functions allow you to control the
    graphics system, manipulate screens and viewports, output text to the
    graphics screen, draw and fill shapes, control the background and
    foreground color, handle graphics errors and inquire into the state of
    the graphics system.

    In order to use these graphics functions, you must
     (1) include <graphics.h> in your program,
     (2) initialize the graphics system and put it in the
            graphics mode,
     (3) shut down the graphics system.

    Therefore, programs using graphics functions should have the
    following as a basic framework:

     #include <graphics.h>

     main()
          {
               int graphdriver = DETECT, graphmode;

               initgraph();

               /* graphics functions */

               closegraph();
          }


See Also: closegraph() initgraph()

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