Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    void _FAR _clearscreen( short area );

Description:
    The _clearscreen function clears the indicated area and fills it with
    the background color.  The area argument must be one of the following
    values:

    _GCLEARSCREEN
        area is entire screen

    _GVIEWPORT
        area is current viewport or clip region

    _GWINDOW
        area is current text window


Returns:
    The _clearscreen function does not return a value.

Example:
    #include <conio.h>
    #include <graph.h>

    main()
    {
        _setvideomode( _VRES16COLOR );
        _rectangle( _GFILLINTERIOR, 100, 100, 540, 380 );
        getch();
        _setviewport( 200, 200, 440, 280 );
        _clearscreen( _GVIEWPORT );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _setbkcolor, _setviewport, _setcliprgn, _settextwindow

See Also: _setbkcolor _setviewport

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