#include "render.hpp" using namespace Ogre; bool OgreRenderer::configure(bool showConfig, const std::string &pluginCfg, bool _logging); { // Set up logging first new LogManager; Log *log = LogManager::getSingleton().createLog("Ogre.log"); logging = _logging; if(logging) // Full log detail log->setLogDetail(LL_BOREME); else // Disable logging log->setDebugOutputEnabled(false); mRoot = new Root(plugincfg, "ogre.cfg", ""); // Show the configuration dialog and initialise the system, if the // showConfig parameter is specified. The settings are stored in // ogre.cfg. If showConfig is false, the settings are assumed to // already exist in ogre.cfg. int result; if(showConfig) result = mRoot->showConfigDialog(); else result = mRoot->restoreConfig(); return !result; }