> > Setting screen resolution isn't straight forward with X11 unfornately,
> > if it had been it'd already have been done.  The generic interface for
> > setting resolution is in place, and implementation is done for Win32,
> > but on the X11 side we did a volunteer to go forth and implement it.

Hmm, I'll have to look into it. I've made my own XWindow wrappers with
OpenGL before setting the screen resolution and never had a problem. I
just looked at SDL's implementation and it's pretty crazy. I looked at
OGRE's for comparison and it's much simpler. Maybe I can make the
implementation, I'll look into it.

> Anyhow, I think that an easier and more "unix-y" way is to make a
> wrapper script calling xrandr or whatever your distro supports to change
> the resolution before starting your application and then change it back.
>
> That has also the advantage that should your app crash, it will not
> leave the screen in a messed up state - a way too common issue that
> could be a major problem if you are working on a system where the
> primary screen can deal only with certain resolutions/refresh rates
> (projectors, HMDs ...)

Hmm, that might be alright, though I don't really like writing shell
scripts, haha. Of course if that is an advantage for some they can
still do it that way, they don't have to use OSG's implementation. But
it would be nice to have an implementation still, as OSG provides an
interface for it and those that want a quick way of resolution
changing without messing with shell scripts can get it there.

Lucas
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to