renderGUI() not reached (OpenGL, C++)

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Worstkaasscenario
Just popping in
Just popping in
Posts: 2
Joined: Wed Apr 11, 2012 23:06

renderGUI() not reached (OpenGL, C++)

Postby Worstkaasscenario » Mon Apr 16, 2012 23:43

Hi everyone,

I'm quite new with this and I'm having some trouble getting the simple window from FirstWindow to appear in my own game engine. I've worked through the tutorials, looked in the forums and tried debugging, but to no avail.
I initialize everything like it happens in FirstWindow.cpp, no problems there.
But when I call call CEGUI::System::getSingleton().renderGUI() in my gameloop, nothing happens. I tried debugging, stepping into renderGUI, but it doesn't go in there; the debugger just goes to the next line.

Here's the code where I call renderGUI()

Code: Select all

void SceneManager::renderScene()
{
   GameEngine::instance()->getRenderer()->startDrawingScene();
   camera->draw();
   rootSceneNode->renderSceneNode();
   GameEngine::instance()->getRenderer()->stopDrawingScene();
   CEGUI::System::getSingleton().renderGUI();
}


The CEGUI.log (There are no errors, but who knows, I might have missed something)

Code: Select all

17/04/2012 01:31:06 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
17/04/2012 01:31:06 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
17/04/2012 01:31:06 (Std)    +                          (http://www.cegui.org.uk/)                         +
17/04/2012 01:31:06 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

17/04/2012 01:31:06 (Std)    CEGUI::Logger singleton created. (003565F0)
17/04/2012 01:31:06 (Std)    
17/04/2012 01:31:06 (Std)    ********************************************************************************
17/04/2012 01:31:06 (Std)    * Important:                                                                   *
17/04/2012 01:31:06 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
17/04/2012 01:31:06 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
17/04/2012 01:31:06 (Std)    *     support being given; please do not waste our time.                       *
17/04/2012 01:31:06 (Std)    ********************************************************************************
17/04/2012 01:31:06 (Std)    ********************************************************************************
17/04/2012 01:31:06 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
17/04/2012 01:31:06 (Std)    ********************************************************************************
17/04/2012 01:31:06 (Std)    ---- Version 0.7.6 (Build: Apr 12 2012 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
17/04/2012 01:31:06 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module.  TextureTarget support enabled via FBO extension. ----
17/04/2012 01:31:06 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
17/04/2012 01:31:06 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
17/04/2012 01:31:06 (Std)    ---- Scripting module is: None ----
17/04/2012 01:31:06 (Std)    ********************************************************************************
17/04/2012 01:31:06 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
17/04/2012 01:31:06 (Std)    ********************************************************************************
17/04/2012 01:31:06 (Std)    
17/04/2012 01:31:06 (Std)    ---- Begining CEGUI System initialisation ----
17/04/2012 01:31:06 (Std)    CEGUI::ImagesetManager singleton created (003584C8)
17/04/2012 01:31:06 (Std)    CEGUI::FontManager singleton created. (00358770)
17/04/2012 01:31:06 (Std)    CEGUI::WindowFactoryManager singleton created
17/04/2012 01:31:06 (Std)    CEGUI::WindowManager singleton created (00356A70)
17/04/2012 01:31:06 (Std)    CEGUI::SchemeManager singleton created. (0035A2B8)
17/04/2012 01:31:06 (Std)    CEGUI::MouseCursor singleton created. (0035A620)
17/04/2012 01:31:06 (Std)    CEGUI::GlobalEventSet singleton created. (0035A9C0)
17/04/2012 01:31:06 (Std)    CEGUI::AnimationManager singleton created (0035AB50)
17/04/2012 01:31:06 (Std)    CEGUI::WidgetLookManager singleton created. (0035C190)
17/04/2012 01:31:06 (Std)    CEGUI::WindowRendererManager singleton created (0035C458)
17/04/2012 01:31:06 (Std)    CEGUI::RenderEffectManager singleton created (0035C5D8)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'DefaultWindow' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'DefaultWindow' windows added. (0035C810)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'DragContainer' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'DragContainer' windows added. (0035CA10)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'ScrolledContainer' windows added. (0035CC18)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'ClippedContainer' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'ClippedContainer' windows added. (0035CE20)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (0035D030)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (0035D248)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (0035D408)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (0035D628)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (0035D7E8)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (0035D9A8)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (0035DBD8)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (0035DD98)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (0035DF58)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (0035E118)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (0035E2D8)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (0035E568)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (0035E928)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (0035EA00)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (0035EBC0)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0035EE20)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (0035F090)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (0035F250)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (0035F410)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (0035F5D0)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (0035F790)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (0035F950)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (0035FB10)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (0035FCD0)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (0035FE90)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (00360138)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (003602F8)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (003604B8)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (00360678)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (00360838)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (003609F8)
17/04/2012 01:31:06 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
17/04/2012 01:31:06 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (00360BB8)
17/04/2012 01:31:06 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
17/04/2012 01:31:06 (Std)    CEGUI::System singleton created. (00356018)
17/04/2012 01:31:06 (Std)    ---- CEGUI System initialisation completed ----
17/04/2012 01:31:06 (Std)    
17/04/2012 01:31:06 (Std)    Started creation of Scheme from XML specification:
17/04/2012 01:31:06 (Std)    ---- CEGUI GUIScheme name: TaharezLook
17/04/2012 01:31:06 (Std)    Started creation of Imageset from XML specification:
17/04/2012 01:31:06 (Std)    ---- CEGUI Imageset name: TaharezLook
17/04/2012 01:31:06 (Std)    ---- Source texture file: TaharezLook.tga in resource group: (Default)
17/04/2012 01:31:07 (Std)    Started creation of Font from XML specification:
17/04/2012 01:31:07 (Std)    ---- CEGUI font name: DejaVuSans-10
17/04/2012 01:31:07 (Std)    ----       Font type: FreeType
17/04/2012 01:31:07 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
17/04/2012 01:31:07 (Std)    ---- Real point size: 10
17/04/2012 01:31:07 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
17/04/2012 01:31:07 (Std)    ===== Look and feel parsing completed =====
17/04/2012 01:31:07 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Button' added. (06C2F930)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Default' added. (06C34D60)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (00387B38)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (00362A58)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (00388C18)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (06D08EB0)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (06D16D10)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (00366FA8)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (06D1B010)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (06D1B0E8)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (06CF0278)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (06D359F0)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (06D35BB0)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (06D35D70)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (06D35F30)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (06D2C1A0)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Slider' added. (06D2C360)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Static' added. (06D2C520)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (06D2E468)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (06D2E628)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (06D2E7E8)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (06D2E9A8)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (06D2EB68)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (00361F20)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (003620E0)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (003622A0)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (00362460)
17/04/2012 01:31:07 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
17/04/2012 01:31:07 (Std)    WindowRendererFactory 'Falagard/Tree' added. (00362620)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/Checkbox' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/ImageButton' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/RadioButton' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' Look'N'Feel 'TaharezLook/FrameWindow' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' Look'N'Feel 'TaharezLook/Titlebar' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/Editbox' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' Look'N'Feel 'TaharezLook/MultiLineEditbox' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' Look'N'Feel 'TaharezLook/Menubar' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' Look'N'Feel 'TaharezLook/PopupMenu' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' Look'N'Feel 'TaharezLook/MenuItem' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/AltProgressBar' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/ProgressBar' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/VUMeter' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/VerticalScrollbar' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/HorizontalScrollbar' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/VerticalScrollbarThumb' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/LargeVerticalScrollbar' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' Look'N'Feel 'TaharezLook/TabButton' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' Look'N'Feel 'TaharezLook/TabControl' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabContentPane' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabButtonPane' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/ComboDropList' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/ComboEditbox' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Combobox' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/Listbox' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' Look'N'Feel 'TaharezLook/ListHeader' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' Look'N'Feel 'TaharezLook/ListHeaderSegment' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' Look'N'Feel 'TaharezLook/MultiColumnList' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' Look'N'Feel 'TaharezLook/Slider' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/SliderThumb' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' Look'N'Feel 'TaharezLook/ScrollablePane' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Spinner' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' Look'N'Feel 'TaharezLook/Tooltip' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' Look'N'Feel 'TaharezLook/StaticImage' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' Look'N'Feel 'TaharezLook/StaticText' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' Look'N'Feel 'TaharezLook/ItemListbox' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' Look'N'Feel 'TaharezLook/ListboxItem' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/GroupBox' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:07 (Std)    Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' Look'N'Feel 'TaharezLook/Tree' and RenderEffect ''. (0033BFA4)
17/04/2012 01:31:11 (Std)    Attempting to create Imageset 'DejaVuSans-10_auto_glyph_images_ ' with texture only.


I'll put the initialize function code here as well just to be sure:

Code: Select all

bool GUIManager::initialize()
{
   using namespace CEGUI;
   CEGUI::OpenGLRenderer& myRenderer = CEGUI::OpenGLRenderer::bootstrapSystem();


   CEGUI::DefaultResourceProvider* rp = static_cast<CEGUI::DefaultResourceProvider*>
      (CEGUI::System::getSingleton().getResourceProvider());

   rp->setResourceGroupDirectory("schemes", "Libs/CEGUI-0.7.6/datafiles/schemes/");
   rp->setResourceGroupDirectory("imagesets", "Libs/CEGUI-0.7.6/datafiles/imagesets/");
   rp->setResourceGroupDirectory("fonts", "Libs/CEGUI-0.7.6/datafiles/fonts/");
   rp->setResourceGroupDirectory("layouts", "Libs/CEGUI-0.7.6/datafiles/layouts/");
   rp->setResourceGroupDirectory("looknfeels", "Libs/CEGUI-0.7.6/datafiles/looknfeel/");
   rp->setResourceGroupDirectory("lua_scripts", "Libs/CEGUI-0.7.6/datafiles/lua_scripts/");


   CEGUI::Imageset::setDefaultResourceGroup("imagesets");
   CEGUI::Font::setDefaultResourceGroup("fonts");
   CEGUI::Scheme::setDefaultResourceGroup("schemes");
   CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeels");
   CEGUI::WindowManager::setDefaultResourceGroup("layouts");
   CEGUI::ScriptModule::setDefaultResourceGroup("lua_scripts");
   // CEGUI relies on various systems being set-up, so this is what we do
   // here first.
   //
   // The first thing to do is load a CEGUI 'scheme' this is basically a file
   // that groups all the required resources and definitions for a particular
   // skin so they can be loaded / initialised easily
   //
   // So, we use the SchemeManager singleton to load in a scheme that loads the
   // imagery and registers widgets for the TaharezLook skin.  This scheme also
   // loads in a font that gets used as the system default.
   SchemeManager::getSingleton().create("TaharezLook.scheme");

   // The next thing we do is to set a default mouse cursor image.  This is
   // not strictly essential, although it is nice to always have a visible
   // cursor if a window or widget does not explicitly set one of its own.
   //
   // The TaharezLook Imageset contains an Image named "MouseArrow" which is
   // the ideal thing to have as a defult mouse cursor image.
   System::getSingleton().setDefaultMouseCursor("TaharezLook", "MouseArrow");

   // Now the system is initialised, we can actually create some UI elements, for
   // this first example, a full-screen 'root' window is set as the active GUI
   // sheet, and then a simple frame window will be created and attached to it.

   // All windows and widgets are created via the WindowManager singleton.
   WindowManager& winMgr = WindowManager::getSingleton();

   // Here we create a "DefaultWindow".  This is a native type, that is, it does
   // not have to be loaded via a scheme, it is always available.  One common use
   // for the DefaultWindow is as a generic container for other windows.  Its
   // size defaults to 1.0f x 1.0f using the Relative metrics mode, which means
   // when it is set as the root GUI sheet window, it will cover the entire display.
   // The DefaultWindow does not perform any rendering of its own, so is invisible.
   //
   // Create a DefaultWindow called 'Root'.
   DefaultWindow* root = (DefaultWindow*)winMgr.createWindow("DefaultWindow", "Root");

   // set the GUI root window (also known as the GUI "sheet"), so the gui we set up
   // will be visible.
   System::getSingleton().setGUISheet(root);

   // A FrameWindow is a window with a frame and a titlebar which may be moved around
   // and resized.
   //
   // Create a FrameWindow in the TaharezLook style, and name it 'Demo Window'
   FrameWindow* wnd = (FrameWindow*)winMgr.createWindow("TaharezLook/FrameWindow", "Demo Window");

   // Here we attach the newly created FrameWindow to the previously created
   // DefaultWindow which we will be using as the root of the displayed gui.
   root->addChildWindow(wnd);

   // Windows are in Relative metrics mode by default.  This means that we can
   // specify sizes and positions without having to know the exact pixel size
   // of the elements in advance.  The relative metrics mode co-ordinates are
   // relative to the parent of the window where the co-ordinates are being set.
   // This means that if 0.5f is specified as the width for a window, that window
   // will be half as its parent window.
   //
   // Here we set the FrameWindow so that it is half the size of the display,
   // and centered within the display.
   wnd->setPosition(UVector2(cegui_reldim(0.25f), cegui_reldim( 0.25f)));
   wnd->setSize(UVector2(cegui_reldim(0.5f), cegui_reldim( 0.5f)));

   // now we set the maximum and minum sizes for the new window.  These are
   // specified using relative co-ordinates, but the important thing to note
   // is that these settings are aways relative to the display rather than the
   // parent window.
   //
   // here we set a maximum size for the FrameWindow which is equal to the size
   // of the display, and a minimum size of one tenth of the display.
   wnd->setMaxSize(UVector2(cegui_reldim(1.0f), cegui_reldim( 1.0f)));
   wnd->setMinSize(UVector2(cegui_reldim(0.1f), cegui_reldim( 0.1f)));

   // As a final step in the initialisation of our sample window, we set the window's
   // text to "Hello World!", so that this text will appear as the caption in the
   // FrameWindow's titlebar.
   wnd->setText("Hello World!");

   return true;
}


Somewhat related: I was wondering how the FirstWindow sample can draw a window without calling renderGUI, or is the call made somewhere else?

Thanks in advance,
wks.

ShadowTiger
Quite a regular
Quite a regular
Posts: 46
Joined: Fri Mar 19, 2010 05:31

Re: renderGUI() not reached (OpenGL, C++)

Postby ShadowTiger » Wed Apr 18, 2012 08:16

If you look at the sample, it does call renderGUI()

If you look at one of the sample code... you will see that it uses the following files:

CEGuiOpenGLBaseApplication.cpp/.h
and CEGuiBaseApplication.cpp/.h


So make sure you look at those and incorporate that code. I found it easiest to simply copy paste one of the demo programs and use that as a starting point. Eventually though you will probably need to get more familiar with how everything works.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests