Curtis L. Olson writes:
> 
> Andy Ross wrote:
> 
> >Norman Vine wrote:
> >  
> >
> >>I see that you removed gamemode support :-(
> >>
> >>This means that Windows users only have 'slow' windowed
> >>mode available now.  :-(
> >>    
> >>
> >
> >Is game mode support actually configurable?  I looked around, and
> >couldn't find a way to enable this stuff short of hacking at the
> >source code.  I just assumed it was dead code.
> >
> 
> What "game mode" does in X11 is open up FlightGear full screen with no 
> window system decorations.  This is critical if you are using FG as an 
> image generator, especially if you are doing multiple projectors like this:
> 
>     http://www.flightgear.org/~curt/WrightSim/
> 
> Under Win32, it sounds like this mode yields a noticable performance 
> improvement.
> 
> If we lose this functionality, it will screw up one of the projects I'm 
> involved in which will not be a happy day. :-(

FYI the snippet below which I have posted before seems to work nicely 
for toggling btween an un-decorated fullscreen window and a decorated
one and should be easy enough to port to the 'new' OS methodology

BTW
I would prefer to see FGFS use a different name then fg_os.xxxx for 
graphics related stuff.

Perhaps fgGFX or fgSurface or fgScreen would be more applicable

Norman

=== cut ===

void toggleFullScreen ()
{
    static int _saved_ww, _saved_wh;
    static bool _fullscreen = 0;

    _fullscreen = !_fullscreen;
    if (_fullscreen)
    {
        _saved_ww = (fgGetInt("/sim/startup/xsize"));
        _saved_wh = (fgGetInt("/sim/startup/ysize"));
        glutFullScreen();
        fgReshape( glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT) );
    } else
    {
        glutReshapeWindow(_saved_ww,_saved_wh);
        fgReshape( _saved_ww, _saved_wh );
    }
}


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to