Visual C++.net, handle and RenderWindow

stalker87

03-06-2007 20:27:18

Hi all !

How i can render my OgreApplication in a windows form or in a panel or whatever i want with Visual c++.net?

I tried to pick handle's panel in this way:


Ogre::String hndStr = Ogre::StringConverter((size_t)(HWND)panel1->Handle.ToPointer());

mRoot->showConfigDialog();
mRoot->initialise(false);

Ogre::ValuePairList par;
par["externalWindowHandle"] = hndStr;

mRoot->createRenderWindow( "MyWin", 800, 600, false, &par );


But i have no good result :\
I must use Mogre for this ?

asvsfs

05-03-2009 13:43:56

i have this problem too i was wondering if i can use ogre with c++.net normally or i have to use Mogre..
???