Hi Robert and Gordon, Well, this is what I expected. Does this sounds interesting for OSG to have a portable "WindowingSystemInterface::getSupportedScreenResolutions(const ScreenIdentifier &, std::vector<osg::Vec2> & resolutions)"? Maybe I'll start looking for Win32 and then Linux implementation.
Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Mon, 15 Dec 2008 10:06:50 +0100, Robert Osfield <robert.osfi...@gmail.com> a écrit: > Hi Sukender, > > There isn't an API for querying all supported resolutions, just an API > for getting the current screen resolution and setting the screen > resolution. See osg::WindowingSystemInterface object that provides > glue between the OSG and the underlying implementations of the > windowing system (provided by src/osgViewer/GraphicsWindowWin32.cpp, > GraphicsWindowX11.cpp and GraphicsWindowCarbo.cpp). > > Robert. > > On Mon, Dec 15, 2008 at 8:21 AM, Sukender <suky0...@free.fr> wrote: >> Hi all, >> >> Almost everything is in the title... I just can't find info on enumerating >> supported (full) screen resolutions. Do you have an idea? >> I guess I can try switching to all usual resolutions and see if they are >> supported or not, but that's really too slow and too ugly. >> Thanks! >> >> Sukender >> PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org