[osg-users] DISPLAY ignored by osgViewer?

Robert Osfield robert.osfield at gmail.com
Wed Oct 24 01:06:14 PDT 2007


Hi Paul,

You are mis-reading the View::setUpView* code, they all read the
display variable and then pass this on to the final GraphicsTraits
used to set up the windows.

The DISPLAY variable is an X11 variable for controlling where the
window will appear.

Robert.

On 10/24/07, Paul Martz <pmartz at skew-matrix.com> wrote:
>
>
> I'm looking through the v2.2 source, and although OSG appears to parse the
> DISPLAY environment variable, it never appears to use its values. In
> particular, the following osgViewer::Viewer entry points override the
> screenNum values specified in DISPLAY:
>   setUpViewAcrossAllScreens
>   setUpViewInWindow
>   setUpViewOnSingleScreen
>
> Is this intentional? If so, why bother parsing DISPLAY at all?
>
> To ask the question another way: I'm trying to create an environment
> variable reference for OSG and want to document all environment variables
> that OSG reads. Can someone tell me what effect setting the DISPLAY
> environment variable has?
>
> Thanks,
>
>
> Paul Martz
> Skew Matrix Software LLC
> http://www.skew-matrix.com
> 303 859 9466
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



More information about the osg-users mailing list