Rendering a Button - Don't see anything

Jochen

17-02-2013 21:30:50

hey folks,

I'm trying to render a simple Button to get familiar with MyGui but don't see anything - I can't find my mistake yet.

Here is my code after the initializing of ogre found in the tutorial on ogre's website


MyGUI::OgrePlatform* mPlatform = new MyGUI::OgrePlatform();
mPlatform->initialise(_window,_sceneManager);
mGUI = new MyGUI::Gui();
mGUI->initialise();

MyGUI::ButtonPtr button = mGUI->createWidget<MyGUI::Button>("Button", 10, 10, 300, 26, MyGUI::Align::Default, "Main");
button->setCaption("test");


This should already be enough to see something isn't it?

Furthermore the MyGui.log - seems to be ok for me.


21:49:45 | Platform | Info | * Initialise: RenderManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 43
21:49:45 | Platform | Info | RenderManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 71
21:49:45 | Platform | Info | * Initialise: DataManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 26
21:49:45 | Platform | Info | DataManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 34
21:49:45 | Core | Info | * Initialise: Gui | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 75
21:49:45 | Core | Info | * MyGUI version 3.2.0 | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 87
21:49:45 | Core | Info | * Initialise: ResourceManager | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 48
21:49:45 | Core | Info | ResourceManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 56
21:49:45 | Core | Info | * Initialise: LayerManager | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 49
21:49:45 | Core | Info | LayerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 57
21:49:45 | Core | Info | * Initialise: WidgetManager | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 67
21:49:45 | Core | Info | WidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 98
21:49:45 | Core | Info | * Initialise: InputManager | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 58
21:49:45 | Core | Info | InputManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 78
21:49:45 | Core | Info | * Initialise: SubWidgetManager | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 49
21:49:45 | Core | Info | SubWidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 69
21:49:45 | Core | Info | * Initialise: SkinManager | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 53
21:49:45 | Core | Info | SkinManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 61
21:49:45 | Core | Info | * Initialise: FontManager | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 48
21:49:45 | Core | Info | FontManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 57
21:49:45 | Core | Info | * Initialise: ControllerManager | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 46
21:49:45 | Core | Info | ControllerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 56
21:49:45 | Core | Info | * Initialise: PointerManager | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 60
21:49:45 | Core | Info | PointerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 78
21:49:45 | Core | Info | * Initialise: ClipboardManager | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 87
21:49:45 | Core | Info | ClipboardManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 101
21:49:45 | Core | Info | * Initialise: LayoutManager | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 45
21:49:45 | Core | Info | LayoutManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 50
21:49:45 | Core | Info | * Initialise: DynLibManager | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 41
21:49:45 | Core | Info | DynLibManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 45
21:49:45 | Core | Info | * Initialise: PluginManager | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 45
21:49:45 | Core | Info | PluginManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 49
21:49:45 | Core | Info | * Initialise: LanguageManager | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 45
21:49:45 | Core | Info | LanguageManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 49
21:49:45 | Core | Info | * Initialise: FactoryManager | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 40
21:49:45 | Core | Info | FactoryManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 42
21:49:45 | Core | Info | * Initialise: ToolTipManager | ..\..\MyGUIEngine\src\MyGUI_ToolTipManager.cpp | 48
21:49:45 | Core | Info | ToolTipManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ToolTipManager.cpp | 60
21:49:45 | Core | Info | Load ini file 'MyGUI_Fonts.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:45 | Core | Info | ResourceTrueTypeFont: Font 'DejaVuSansFont.15' using texture size 128 x 256. | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 674
21:49:45 | Core | Info | ResourceTrueTypeFont: Font 'DejaVuSansFont.15' using real height 17 pixels. | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 675
21:49:45 | Core | Info | Load ini file 'MyGUI_Images.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:45 | Core | Info | Load ini file 'MyGUI_CommonSkins.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:45 | Core | Info | Register value : 'HCenter' = 0 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 238
21:49:45 | Core | Info | Register value : 'VCenter' = 0 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 239
21:49:45 | Core | Info | Register value : 'Center' = 0 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 240
21:49:45 | Core | Info | Register value : 'Left' = 2 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 241
21:49:45 | Core | Info | Register value : 'Right' = 4 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 242
21:49:45 | Core | Info | Register value : 'HStretch' = 6 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 243
21:49:45 | Core | Info | Register value : 'Top' = 8 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 244
21:49:45 | Core | Info | Register value : 'Bottom' = 16 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 245
21:49:45 | Core | Info | Register value : 'VStretch' = 24 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 246
21:49:45 | Core | Info | Register value : 'Stretch' = 30 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 247
21:49:45 | Core | Info | Register value : 'Default' = 10 | d:\programming\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 248
21:49:45 | Core | Info | Load ini file 'MyGUI_BlueWhiteTheme.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:45 | Core | Info | Load ini file 'MyGUI_BlueWhiteImages.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:45 | Core | Info | Load ini file 'MyGUI_BlueWhiteSkins.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:46 | Core | Error | Texture 'MyGUI_BlueWhiteSkins.png' not found | ..\..\MyGUIEngine\src\MyGUI_TextureUtility.cpp | 54
21:49:46 | Core | Info | Load ini file 'MyGUI_BlueWhiteTemplates.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:46 | Core | Info | Load ini file 'MyGUI_Pointers.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:46 | Core | Info | Load ini file 'MyGUI_Layers.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:46 | Core | Info | Load ini file 'MyGUI_Settings.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:49:46 | Core | Error | Texture 'MyGUI_Pointers.png' not found | ..\..\MyGUIEngine\src\MyGUI_TextureUtility.cpp | 54
21:49:46 | Core | Info | Gui successfully initialized | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 133




I hope you can help me
Thanks alot!

Greets
Jochen

Altren

18-02-2013 07:35:06

http://www.ogre3d.org/tikiwiki/tiki-ind ... =MyGUI+FAQ
2nd question about not found textures.

Jochen

18-02-2013 12:28:30

awkward... thank you