Ogre::SceneManager* DisplayManager::getSceneManager(const QString scene) { if(mSceneManagers.count(scene) == 0) { _createWindow(); // TODO check if window already present Logger::get().info("Creating a scene manager for scene " + scene + "."); Ogre::SceneManager* mgr = mOgreRoot->createSceneManager("DefaultSceneManager"); mgr->setAmbientLight(Ogre::ColourValue(0.5, 0.5, 0.5)); mgr->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_MODULATIVE); mSceneManagers[scene] = mgr; } return mSceneManagers[scene]; }
void XsMDIWindow::show ( ) { // Create the window (if necessary) if (_base == 0) { assert (_parent != 0); _createWindow (_parent); } // Manage the client area XtManageChild (_clientArea); // Configure the window position and size if (_placed == False) { const int nargs = 4; Arg args[nargs]; int n = 0; if (_initX != (Position)-1) { XtSetArg (args[n], XmNx, _initX); n++; } if (_initY != (Position)-1) { XtSetArg (args[n], XmNy, _initY); n++; } if (_initW != (Dimension)-1) { XtSetArg (args[n], XmNwidth, _initW); n++; } if (_initH != (Dimension)-1) { XtSetArg (args[n], XmNheight, _initH); n++; } assert (n <= nargs); XtSetValues (_base, args, n); _placed = True; } // Call the base class XsComponent::show ( ); }
void DisplayManager::createOgreRoot() { if(mOgreRoot == nullptr) { _createWindow(); } }
ide::Window::Window(Window *ptro,const char *title) { _createWindow(ptro,title,LINES,COLS,0,0,NONE); }
ide::Window::Window(const char* title) { _createWindow(FULLSCREEN,title,LINES,COLS,0,0,NONE); }
ide::Window::Window(Window *ptro) { _createWindow(ptro,"New Window",LINES,COLS,0,0,NONE); }
ide::Window::Window() { _createWindow(FULLSCREEN,"New Window",LINES,COLS,0,0,NONE); }
bool CWebWindow::create(HWND parent, unsigned styles, unsigned styleEx, int x, int y, int width, int height) { CWebView::create(); return _createWindow(parent, styles, styleEx, x, y, width, height); }
SFMLRenderer::SFMLRenderer() { _createWindow(); _initializeGUI(); srand(time(NULL)); }