Im trying to use cegui in my ogre application
but im having some problems (maybe in both i really couldnt understand)
im not sure which one fails to work.. since my debugger also is not working!
Code: Select all
DrawUtil* DU = DrawUtil::getSingleton();
DU->CeguiRenderer = new CEGUI::OgreCEGUIRenderer(DU->DefaultWindow,
Ogre::RENDER_QUEUE_OVERLAY,
false,
3000,
DU->DefaultSceneManager);
CEGUI::System* mSystem = new CEGUI::System(DU->CeguiRenderer);
DU->mSystem = mSystem;
DU->setCegui();
CEGUI::MouseCursor::getSingleton().setImage(CEGUI::System::getSingleton().getDefaultMouseCursor());
CEGUI::System::getSingletonPtr()->renderGUI();
this is my launching seq.
Code: Select all
DrawUtil* DU = DrawUtil::getSingleton();
//set logger
CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Informative);
//loading the scheme
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme", (CEGUI::utf8*)"GUI");
//set the deafult mouse cursor
DU->mSystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
//Set the font
CEGUI::FontManager::getSingleton().createFont("Tahoma-8.font", (CEGUI::utf8*)"GUI");
DU->mSystem->setDefaultFont((CEGUI::utf8*)"Tahoma-8");
CEGUI::Window* mLayout = CEGUI::WindowManager::getSingleton().loadWindowLayout("facial.layout", "" , "GUI");
DU->mLayout = mLayout;
DU->mSystem->setGUISheet(mLayout);
and this is for setting things up.. well as im not good at using cegui at the moment (but i hope i ll imorove on the subject soon)
is this code wrong in some ways?
its not showing anything..
here is my cegui logs..
Code: Select all
01/10/2008 16:57:04 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
01/10/2008 16:57:04 (InfL1) + Crazy Eddie's GUI System - Event log +
01/10/2008 16:57:04 (InfL1) + (http://www.cegui.org.uk/) +
01/10/2008 16:57:04 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
01/10/2008 16:57:04 (InfL1) CEGUI::Logger singleton created.
01/10/2008 16:57:04 (InfL1) ---- Begining CEGUI System initialisation ----
01/10/2008 16:57:04 (InfL1) CEGUI::ImagesetManager singleton created
01/10/2008 16:57:04 (InfL1) CEGUI::FontManager singleton created.
01/10/2008 16:57:04 (InfL1) CEGUI::WindowFactoryManager singleton created
01/10/2008 16:57:04 (InfL1) CEGUI::WindowManager singleton created
01/10/2008 16:57:04 (InfL1) CEGUI::SchemeManager singleton created.
01/10/2008 16:57:04 (InfL1) CEGUI::MouseCursor singleton created.
01/10/2008 16:57:04 (InfL1) CEGUI::GlobalEventSet singleton created.
01/10/2008 16:57:04 (InfL1) CEGUI::WidgetLookManager singleton created.
01/10/2008 16:57:04 (InfL1) CEGUI::WindowRendererManager singleton created
01/10/2008 16:57:04 (InfL1) WindowFactory for 'DefaultWindow' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'DragContainer' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'ScrolledContainer' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'ClippedContainer' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Checkbox' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/PushButton' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/RadioButton' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Combobox' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/ComboDropList' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Editbox' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/FrameWindow' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/ItemEntry' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Listbox' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/ListHeader' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/ListHeaderSegment' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Menubar' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/PopupMenu' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/MenuItem' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/MultiColumnList' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/MultiLineEditbox' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/ProgressBar' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/ScrollablePane' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Scrollbar' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Slider' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Spinner' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/TabButton' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/TabControl' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Thumb' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Titlebar' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/Tooltip' windows added.
01/10/2008 16:57:04 (InfL1) WindowFactory for 'CEGUI/ItemListbox' windows added.
01/10/2008 16:57:04 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
01/10/2008 16:57:04 (InfL1) CEGUI::System singleton created.
01/10/2008 16:57:04 (InfL1) ---- CEGUI System initialisation completed ----
01/10/2008 16:57:04 (InfL1) ---- Version 0.5.1 ----
01/10/2008 16:57:04 (InfL1) ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
01/10/2008 16:57:04 (InfL1) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
01/10/2008 16:57:04 (InfL1) ---- Scripting module is: None ----
01/10/2008 16:57:04 (InfL1) Attempting to load Scheme from file 'TaharezLookSkin.scheme'.
01/10/2008 16:57:04 (InfL1) Attempting to create an Imageset from the information specified in file 'TaharezLook.imageset'.
01/10/2008 16:57:04 (InfL1) Started creation of Imageset from XML specification:
01/10/2008 16:57:04 (InfL1) ---- CEGUI Imageset name: TaharezLook
01/10/2008 16:57:04 (InfL1) ---- Source texture file: TaharezLook.tga in resource group: (Default)
01/10/2008 16:57:04 (InfL1) Attempting to create Font from the information specified in file 'bluehighway-12.font'.
01/10/2008 16:57:04 (InfL1) Started creation of FreeType Font:
01/10/2008 16:57:04 (InfL1) ---- CEGUI font name: BlueHighway-12
01/10/2008 16:57:04 (InfL1) ---- Source file: bluehigh.ttf in resource group: (Default)
01/10/2008 16:57:04 (InfL1) ---- Real point size: 12
01/10/2008 16:57:04 (InfL1) Succsessfully loaded 289 glyphs
01/10/2008 16:57:04 (InfL1) Attempting to create Font from the information specified in file 'bluehighway-10.font'.
01/10/2008 16:57:04 (InfL1) Started creation of FreeType Font:
01/10/2008 16:57:04 (InfL1) ---- CEGUI font name: BlueHighway-10
01/10/2008 16:57:04 (InfL1) ---- Source file: bluehigh.ttf in resource group: (Default)
01/10/2008 16:57:04 (InfL1) ---- Real point size: 10
01/10/2008 16:57:04 (InfL1) Succsessfully loaded 289 glyphs
01/10/2008 16:57:04 (InfL1) Attempting to create Font from the information specified in file 'bluehighway-8.font'.
01/10/2008 16:57:04 (InfL1) Started creation of FreeType Font:
01/10/2008 16:57:04 (InfL1) ---- CEGUI font name: BlueHighway-8
01/10/2008 16:57:04 (InfL1) ---- Source file: bluehigh.ttf in resource group: (Default)
01/10/2008 16:57:04 (InfL1) ---- Real point size: 8
01/10/2008 16:57:04 (InfL1) Succsessfully loaded 289 glyphs
01/10/2008 16:57:04 (InfL1) ===== Falagard 'root' element: look and feel parsing begins =====
01/10/2008 16:57:04 (InfL1) ===== Look and feel parsing completed =====
01/10/2008 16:57:04 (InfL1) No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Button' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Default' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Editbox' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/FrameWindow' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/ItemEntry' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/ListHeader' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/ListHeaderSegment' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Listbox' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Menubar' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/MenuItem' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/MultiColumnList' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/MultiLineEditbox' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/PopupMenu' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/ProgressBar' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/ScrollablePane' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Scrollbar' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Slider' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Static' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/StaticImage' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/StaticText' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/SystemButton' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/TabButton' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/TabControl' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Titlebar' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/ToggleButton' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/Tooltip' added.
01/10/2008 16:57:04 (InfL1) WindowRendererFactory 'Falagard/ItemListbox' added.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/Checkbox'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/ImageButton'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/RadioButton'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'TaharezLook/FrameWindow'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'TaharezLook/Titlebar'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/SystemButton' and Look'N'Feel 'TaharezLook/Button'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/Editbox'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'TaharezLook/MultiLineEditbox'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'TaharezLook/Menubar'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'TaharezLook/PopupMenu'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'TaharezLook/MenuItem'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/AltProgressBar'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/ProgressBar'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/VUMeter'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/VerticalScrollbar'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/HorizontalScrollbar'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/VerticalScrollbarThumb'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbar'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'TaharezLook/TabButton'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'TaharezLook/TabControl'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabContentPane'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabButtonPane'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/ComboDropList'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/ComboEditbox'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Combobox'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/Listbox'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'TaharezLook/ListHeader'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'TaharezLook/ListHeaderSegment'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'TaharezLook/MultiColumnList'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'TaharezLook/Slider'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/SliderThumb'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'TaharezLook/ScrollablePane'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Spinner'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'TaharezLook/Tooltip'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'TaharezLook/StaticImage'.
01/10/2008 16:57:04 (InfL1) Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'TaharezLook/StaticText'.
as you may realized by now im using the samples like facial.layout
thanks in advance for any sort of help!
or sorry for asking a stupid question (if i did)
i just wanna know if my problem is cegui based or ogre based