[osg-users] Fullscreen

Robert Osfield robert.osfield at gmail.com
Wed Sep 24 01:22:55 PDT 2008

Hi Tim,

On Wed, Sep 24, 2008 at 12:33 AM, Tim Jaffe <blahpers_osg at yahoo.com> wrote:
> Thanks for the response. I got the borderless window method to work and finished updating the code to 2.4.  Is it possible to produce a true (exclusive mode) fullscreen view--perhaps by using an externally-created exclusive OpenGL context?

The exclusive fullscreen modes are bit awkward to work with in terms
of providing consistent behavior, but you can make the OSG work with
this approach - but if you want to toggle into windowed mode you'd
need to delete the full screen context and then recreate a new context
in the window, which is right old pain.

You could add the hardwired fullscreen mode into
osgViewer::GraphicsWindow*.cpp methods, and to facilitate this one
would probably best provide an extra hint in
osg::GraphicsContext::Traits to tell these implementations that you
want one of these no turning back full screen windows.  Given you
might not be the last to request this feature this is the route I'd
suggest you follow.

The other route would be to use SDL and GraphicsWindowEmbedded as per
the osgviewerSDL example, but... this would preclude the use of
multi-threading and multiple window support as SDL doesn't provide the
controls necessary for this type of operation, so you'd be using the
OSG in a rather hobbled way.


More information about the osg-users mailing list