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 _setvieworg( short x, short y );

Description:
    The _setvieworg function sets the origin of the view coordinate system,
    (0,0), to be located at the physical point (x,y).  This causes
    subsequently drawn images to be translated by the amount (x,y).

    Note:  In previous versions of the software, the _setvieworg function
    was called _setlogorg.

Returns:
    The _setvieworg function returns, as an xycoord structure, the physical
    coordinates of the previous origin.

See Also:
    _getviewcoord, _getviewcoord_w, _getviewcoord_wxy, _getphyscoord, _setcliprgn, _setviewport

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

    main()
    {
        _setvideomode( _VRES16COLOR );
        _setvieworg( 320, 240 );
        _ellipse( _GBORDER, -200, -150, 200, 150 );
        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