diff --git a/code/ryzom/tools/client/client_config_qt/display_settings_widget.cpp b/code/ryzom/tools/client/client_config_qt/display_settings_widget.cpp index f6775a0b7..1771f23cf 100644 --- a/code/ryzom/tools/client/client_config_qt/display_settings_widget.cpp +++ b/code/ryzom/tools/client/client_config_qt/display_settings_widget.cpp @@ -32,6 +32,7 @@ CDisplaySettingsWidget::CDisplaySettingsWidget( QWidget *parent ) : connect( autoRadioButton, SIGNAL( clicked( bool ) ), this, SLOT( onSomethingChanged() ) ); connect( openglRadioButton, SIGNAL( clicked( bool ) ), this, SLOT( onSomethingChanged() ) ); + connect( openGL3RB, SIGNAL( clicked( bool ) ), this, SLOT( onSomethingChanged() ) ); connect( direct3dRadioButton, SIGNAL( clicked( bool ) ), this, SLOT( onSomethingChanged() ) ); connect( fullscreenRadioButton, SIGNAL( clicked( bool ) ), this, SLOT( onSomethingChanged() ) ); connect( windowedRadioButton, SIGNAL( clicked( bool ) ), this, SLOT( onSomethingChanged() ) ); @@ -65,6 +66,12 @@ void CDisplaySettingsWidget::load() case DRV_DIRECT3D: direct3dRadioButton->setChecked( true ); break; + case DRV_GLES: + openglRadioButton->setChecked( true ); + break; + case DRV_OPENGL3: + openGL3RB->setChecked( true ); + break; } updateVideoModes(); @@ -99,6 +106,8 @@ void CDisplaySettingsWidget::save() if( openglRadioButton->isChecked() ) s.config.setString( "Driver3D", std::string( "OpenGL" ) ); + else if( openGL3RB->isChecked() ) + s.config.setString( "Driver3D", std::string( "OpenGL3" ) ); else if( direct3dRadioButton->isChecked() ) s.config.setString( "Driver3D", std::string( "Direct3D" ) ); else @@ -217,11 +226,16 @@ E3DDriver CDisplaySettingsWidget::getDriverFromConfigString(std::string &str) co return DRV_OPENGL; if( str.compare( "2" ) == 0 ) return DRV_DIRECT3D; + if( str.compare( "3" ) == 0 ) + return DRV_GLES; + if( str.compare( "4" ) == 0 ) + return DRV_OPENGL3; if( str.compare( "OpenGL" ) == 0 ) return DRV_OPENGL; if( str.compare( "Direct3D" ) == 0) return DRV_DIRECT3D; - + if( str.compare( "OpenGL3" ) == 0 ) + return DRV_OPENGL3; return DRV_AUTO; } diff --git a/code/ryzom/tools/client/client_config_qt/display_settings_widget.h b/code/ryzom/tools/client/client_config_qt/display_settings_widget.h index f67ec8b15..7389a5459 100644 --- a/code/ryzom/tools/client/client_config_qt/display_settings_widget.h +++ b/code/ryzom/tools/client/client_config_qt/display_settings_widget.h @@ -27,7 +27,9 @@ enum E3DDriver { DRV_AUTO, DRV_OPENGL, - DRV_DIRECT3D + DRV_DIRECT3D, + DRV_GLES, + DRV_OPENGL3 }; /** diff --git a/code/ryzom/tools/client/client_config_qt/display_settings_widget.ui b/code/ryzom/tools/client/client_config_qt/display_settings_widget.ui index 2e24b455f..8f1f6bcdf 100644 --- a/code/ryzom/tools/client/client_config_qt/display_settings_widget.ui +++ b/code/ryzom/tools/client/client_config_qt/display_settings_widget.ui @@ -6,106 +6,128 @@ 0 0 - 391 - 429 + 408 + 415 Display - - + + + + + 0 + 0 + + Driver + + + + 10 + 23 + 249 + 16 + + + + Specify if Ryzom is to be run in OpenGL or Direct3D. + + + + + + 10 + 50 + 69 + 88 + + + + + + + Auto + + + + + + + OpenGL + + + + + + + OpenGL3 + + + + + + + Direct3D + + + + + + + + + + + + 0 + 0 + + + + Parameters + - + - + - Specify if Ryzom is to be run in OpenGL or Direct3D. + Specify if Ryzom is to be run in full screen or window mode: - + - Auto + Full screen - + - OpenGL + Specify a video mode - + + + + - Direct3D + Windowed - - - - - - - Parameters - - - - - - Specify if Ryzom is to be run in full screen or window mode: - - - - - - - Full screen - - - - - - - Specify a video mode - - - - - - - - - - Qt::Vertical - - - - 20 - 34 - - - - - - - - Windowed - - - - +