How to call main window resize manually?

icaromotta

11-04-2011 18:11:32

Hi,

Before, when I was using the version 3.0.0 called the function


GRender->getOgrePlatform()->getRenderManagerPtr()->updateSizeWindow();


in of resizeEvent of my window and worked.

Now, with the version 3.0.1 There is not this function.

What function should I call?

Thank you.

icaromotta

11-04-2011 18:35:56

I downloaded of svn. Maybe is version 3.0.2 because come skin editor.

Altren

11-04-2011 19:09:19

I think we never had such function. At least I can't find it in older svn revisions and I don't remember something like this.
What this function was for? Maybe you used modified sources of MyGUI?

icaromotta

11-04-2011 19:18:19

I think that is.

:)


void OgreRenderManager::updateSizeWindow()
{
if(mWindow != nullptr)
windowResized(mWindow);
}




Thank you!!!!!!!!!!!!!! :D

icaromotta

11-04-2011 19:22:40

Without changing the source code.



int num = GRender->getOgrePlatform()->getRenderManagerPtr()->getActiveViewport();
GRender->getOgrePlatform()->getRenderManagerPtr()->setActiveViewport(num);