Created
June 26, 2012 13:24
-
-
Save pvdk/2995763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 | |
mRendererComboBox->setCurrentIndex(mRendererComboBox->findText("Direct3D9 Rendering Subsystem")); | |
#else | |
mRendererComboBox->setCurrentIndex(mRendererComboBox->findText("OpenGL Rendering Subsystem")); | |
#endif | |
} | |
// Create separate rendersystems | |
QString openGLName = mRendererComboBox->itemText(mRendererComboBox->findText(QString("OpenGL"), Qt::MatchStartsWith)); | |
QString direct3DName = mRendererComboBox->itemText(mRendererComboBox->findText(QString("Direct3D"), Qt::MatchStartsWith)); | |
mOpenGLRenderSystem = mOgre->getRenderSystemByName(openGLName.toStdString()); | |
mDirect3DRenderSystem = mOgre->getRenderSystemByName(direct3DName.toStdString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment