Hello,

I believe this is the right place to ask, but I also appeal to SDL veterans...

The osgSimpleViewerSDL example uses the SDL_WM_ToggleFullScreen(screen);
function found in SDL to toggle full screen mode when the 'f' key is pressed.
However, this function is only supported for X11, and therefore doesn't work
for Windows.

I tried, as a work around, to create a new SDL_Surface in full screen mode, and
use that instead. Unfortunately, I guess the OpenGL context that OSG works on
is still held by the first SDL_Surface that was created at the start of the
program, because the new window (or full screen app, depending on what the
state was before the toggle) does not contain any objects (just the blue
background).

Is there a way to tell OSG to use the new context that is associated to the new
SDL_Surface?

Just by curiosity, I tried to create the second SDL_Surface without the
SDL_OPENGL flag, thinking it would reuse the context from the first surface.
Didn't work (completely black window, not even the blue background).


I know this is minor in most cases, but I would really like the toggle to work
on all platforms for my viewer.


Thanks in advance,

J-S
--
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to