Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Load the OpenGL RenderSystem and the Octree SceneManager plugins
- for (auto j : plugins_toLoad) {
- //#ifdef _DEBUG
- mRoot->loadPlugin(j + Ogre::String("_d"));
- //#else
- mRoot->loadPlugin(j);
- //#endif
- }
- // Check if the required plugins are installed and ready for use
- for (auto required_plugin : required_plugins) {
- bool found = false;
- for (auto installed_plugin_ptr : mRoot->getInstalledPlugins()) {
- if (required_plugin == installed_plugin_ptr->getName()) {
- found = true;
- break;
- }
- }
- if (!found) {
- throw std::runtime_error(Ogre::String("The required plugin ") + required_plugin + " could not be found");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement