nonter
16-02-2010 14:29:39
Is this all I have to do to just have MyGui in my app?
http://www.ogre3d.org/wiki/index.php/MyGUI_quickstart
Because I completed it (without the button and its callback)
and I get this log:
As you noticed I am completely ne to MyGUI
I suppose it crashes while initializing the LayerManager
Here is how I create the ogre stuff
I think this code is enough to initialise MyGui but probably I am wrong
*EDIT: Just an addition please don't recommend looking the demos because I already had a look and they are so messy in my view that I doubt I will ever try to understand them
http://www.ogre3d.org/wiki/index.php/MyGUI_quickstart
Because I completed it (without the button and its callback)
and I get this log:
16:23:41 | Platform | Info | * Initialise: OgreRenderManager | C:\Documents and Settings\Naiden\My Documents\odetest\MyGUI\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 27
16:23:41 | Platform | Info | OgreRenderManager successfully initialized | C:\Documents and Settings\Naiden\My Documents\odetest\MyGUI\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 55
16:23:41 | Platform | Info | * Initialise: OgreDataManager | C:\Documents and Settings\Naiden\My Documents\odetest\MyGUI\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 46
16:23:41 | Platform | Info | OgreDataManager successfully initialized | C:\Documents and Settings\Naiden\My Documents\odetest\MyGUI\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 50
16:23:41 | Core | Info | * Initialise: Gui | C:\MyGUI3.0\MyGUIEngine\src\MyGUI_Gui.cpp | 82
16:23:41 | Core | Info | * MyGUI version 3.0.0 | C:\MyGUI3.0\MyGUIEngine\src\MyGUI_Gui.cpp | 86
16:23:41 | Core | Info | * Initialise: ResourceManager | C:\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 43
16:23:41 | Core | Info | ResourceManager successfully initialized | C:\MyGUI3.0\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 51
16:23:41 | Core | Info | * Initialise: LayerManager | C:\MyGUI3.0\MyGUIEngine\src\MyGUI_LayerManager.cpp | 45
As you noticed I am completely ne to MyGUI
I suppose it crashes while initializing the LayerManager
Here is how I create the ogre stuff
if(!root->showConfigDialog())
{
//Ogre
delete root;
return false; // Exit the application on cancel
}
RenderWindow* window = root->initialise(true, "Simple Ogre App");
ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
SceneManager* sceneMgr = root->createSceneManager(ST_GENERIC);
Camera* camera = sceneMgr->createCamera("SimpleCamera");
Viewport* viewPort = window->addViewport(camera);
MyGUI::Gui * mGUI;
MyGUI::OgrePlatform* mPlatform = new MyGUI::OgrePlatform();
mPlatform->initialise(window, sceneMgr); // mWindow is Ogre::RenderWindow*, mSceneManager is Ogre::SceneManager*
mGUI = new MyGUI::Gui();
mGUI->initialise();
I think this code is enough to initialise MyGui but probably I am wrong

*EDIT: Just an addition please don't recommend looking the demos because I already had a look and they are so messy in my view that I doubt I will ever try to understand them
