Ejemplo n.º 1
0
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];
}
Ejemplo n.º 2
0
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 ( );
}
Ejemplo n.º 3
0
void DisplayManager::createOgreRoot() {
    if(mOgreRoot == nullptr) {
        _createWindow();
    }
}
Ejemplo n.º 4
0
ide::Window::Window(Window *ptro,const char *title)
{
	_createWindow(ptro,title,LINES,COLS,0,0,NONE);
}
Ejemplo n.º 5
0
ide::Window::Window(const char* title)
{
	_createWindow(FULLSCREEN,title,LINES,COLS,0,0,NONE);
}
Ejemplo n.º 6
0
ide::Window::Window(Window *ptro)
{
	_createWindow(ptro,"New Window",LINES,COLS,0,0,NONE);
}
Ejemplo n.º 7
0
ide::Window::Window()
{
	_createWindow(FULLSCREEN,"New Window",LINES,COLS,0,0,NONE);
}
Ejemplo n.º 8
0
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);
}
Ejemplo n.º 9
0
SFMLRenderer::SFMLRenderer() {
    _createWindow();
    _initializeGUI();
    srand(time(NULL));
}