public override RenderWindow CreateWindow( bool autoCreateWindow, GLESRenderSystem renderSystem, string windowTitle )
{
RenderWindow window = null;
if ( autoCreateWindow )
{
NamedParameterList miscParams = new NamedParameterList();
bool fullScreen = false;
int width = 640;
int height = 480;
if ( _options[ "Full Screen" ] != null )
{
fullScreen = _options[ "Full Screen" ].Value == "Yes";
}
if ( _options[ "Display Frequency" ] != null )
{
miscParams[ "displayFrequency" ] = _options[ "Display Frequency" ].Value;
}
if ( _options[ "Video Mode" ] != null )
{
string val = _options[ "Video Mode" ].Value;
int xIndex = val.IndexOf( "x" );
if ( xIndex != -1 )
{
width = int.Parse( val.Substring( 0, xIndex ) );
height = int.Parse( val.Substring( xIndex + 1 ) );
}
}
if ( _options[ "FSAA" ] != null )
{
miscParams[ "FSAA" ] = _options[ "FSAA" ].Value;
}
window = renderSystem.CreateRenderWindow( windowTitle, width, height, fullScreen, miscParams );
}
return window;
}