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 _outtext( char _FAR *text );

Description:
    The _outtext function displays the character string indicated by the
    argument text.  The string must be terminated by a null character
    ('\0').  When a line-feed character ('\n') is encountered in the string,
    the characters following will be displayed on the next row of the
    screen.

    The text is displayed using the current text color (see the
     _settextcolor function), starting at the current text position (see the
     _settextposition function).  The text position is updated to follow the
    end of the displayed text.

    The graphics library can display text in three different ways.

     1. The  _outtext and  _outmem functions can be used in any video mode.
        However, this variety of text can be displayed in only one size.

     2. The  _grtext function displays text as a sequence of line segments,
        and can be drawn in different sizes, with different orientations and
        alignments.

     3. The  _outgtext function displays text in the currently selected
        font.  Both bit-mapped and vector fonts are supported; the size and
        type of text depends on the fonts that are available.


Returns:
    The _outtext function does not return a value.

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

    main()
    {
        _setvideomode( _TEXTC80 );
        _settextposition( 10, 30 );
        _outtext( "WATCOM Graphics" );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _settextcolor, _settextposition, _settextwindow, _grtext, _outmem,
    _outgtext

See Also: _settextcolor _settextposition

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