Commit a2ef4306 authored by Jan Möbius's avatar Jan Möbius

More OpenGL info in About Dialog

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6569 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9f60eaee
......@@ -77,26 +77,35 @@ void CoreWidget::showAboutWidget( ) {
aboutWidget_->OpenFlipperAbout->append("\n");
aboutWidget_->OpenFlipperAbout->append("OpenGL Specific Info:");
QString vendor = QString((const char*)glGetString(GL_VENDOR));
aboutWidget_->OpenFlipperAbout->append("Vendor:\t" + vendor);
QString renderer = QString((const char*)glGetString(GL_RENDERER));
aboutWidget_->OpenFlipperAbout->append("Renderer:\t" + renderer);
QGLFormat::OpenGLVersionFlags flags = QGLFormat::openGLVersionFlags();
if ( flags.testFlag(QGLFormat::OpenGL_Version_3_0) )
aboutWidget_->OpenFlipperAbout->append("Version: 3.0 or higher" );
aboutWidget_->OpenFlipperAbout->append("Version:\t3.0 or higher" );
else if (flags.testFlag(QGLFormat::OpenGL_Version_2_1))
aboutWidget_->OpenFlipperAbout->append("Version: 2.1 or higher" );
aboutWidget_->OpenFlipperAbout->append("Version:\t2.1 or higher" );
else if (flags.testFlag(QGLFormat::OpenGL_Version_2_0))
aboutWidget_->OpenFlipperAbout->append("Version: 2.0 or higher" );
aboutWidget_->OpenFlipperAbout->append("Version:\t2.0 or higher" );
else if (flags.testFlag(QGLFormat::OpenGL_Version_1_5))
aboutWidget_->OpenFlipperAbout->append("Version: 1.5 or higher" );
aboutWidget_->OpenFlipperAbout->append("Version:\t1.5 or higher" );
else if (flags.testFlag(QGLFormat::OpenGL_Version_1_4))
aboutWidget_->OpenFlipperAbout->append("Version: 1.4 or higher" );
aboutWidget_->OpenFlipperAbout->append("Version:\t1.4 or higher" );
else if (flags.testFlag(QGLFormat::OpenGL_Version_1_3))
aboutWidget_->OpenFlipperAbout->append("Version: 1.3 or higher" );
aboutWidget_->OpenFlipperAbout->append("Version:\t1.3 or higher" );
else if (flags.testFlag(QGLFormat::OpenGL_Version_1_2))
aboutWidget_->OpenFlipperAbout->append("Version: 1.2 or higher" );
aboutWidget_->OpenFlipperAbout->append("Version:\t1.2 or higher" );
else if (flags.testFlag(QGLFormat::OpenGL_Version_1_1))
aboutWidget_->OpenFlipperAbout->append("Version: 1.1 or higher" );
aboutWidget_->OpenFlipperAbout->append("Version:\t1.1 or higher" );
else
aboutWidget_->OpenFlipperAbout->append("Version: UNKNOWN!" );
aboutWidget_->OpenFlipperAbout->append("Version:\tUNKNOWN!" );
aboutWidget_->OpenFlipperAbout->append("Supported Extensions:");
QString glExtensions = QString((const char*)glGetString(GL_EXTENSIONS));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment