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/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    struct xycoord _FAR _setgtextvector( short x, short y );

Description:
    The _setgtextvector function sets the orientation for text output used
    by the  _outgtext function to the vector specified by the arguments
    (x,y).  Each of the arguments can have a value of -1, 0 or 1, allowing
    for text to be displayed at any multiple of a 45-degree angle.  The
    default text orientation, for normal left-to-right text, is the vector
    (1,0).

Returns:
    The _setgtextvector function returns, as an xycoord structure, the
    previous value of the text orientation vector.

See Also:
    _registerfonts, _unregisterfonts, _setfont, _getfontinfo, _outgtext,
    _getgtextextent, _getgtextvector

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

    main()
    {
        struct xycoord old_vec;

        _setvideomode( _VRES16COLOR );
        old_vec = _getgtextvector();
        _setgtextvector( 0, -1 );
        _moveto( 100, 100 );
        _outgtext( "WATCOM Graphics" );
        _setgtextvector( old_vec.xcoord, old_vec.ycoord );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

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