Page 1 of 1
Starting with CEGUI
Posted: Tue Oct 18, 2005 08:48
by pabloa
Hi I need some help to start with cegui. I am using it with ogre. I only have two examples. I would like to undertand it but I dont know how, for me the API is not enought I need more examples. Could you email me more?
Re: Starting with CEGUI
Posted: Tue Oct 18, 2005 18:48
by martignasse
hi,
If it's not one of you'r two example, you should look at
Beginner Tutorial 6: CEGUI from the ogre wiki.
Hope it help.
Re: Starting with CEGUI
Posted: Wed Oct 19, 2005 09:25
by pabloa
my two examplos are which came with ogre and the wiki example.
I believe the example must have more explanations for newbee people. PLease email me your examples!!!
Re: Starting with CEGUI
Posted: Wed Oct 19, 2005 18:50
by martignasse
unfortunatly, i haven't example for you.
be warned, CEGUI and ogre aren't trivial software, and if you can't deal with example in the wiki, it's maybe just because you haven't enough knowledge.
Re: Starting with CEGUI
Posted: Thu Oct 20, 2005 09:43
by pabloa
Yeah, I dont have knowledge because I have just start with CEGUI
In the code from de demo_gui from ogre appear :
Code: Select all
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();
wmgr.getWindow((CEGUI::utf8*)"OgreGuiDemo/TabCtrl/Page1/QuitButton")
->subscribeEvent(
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber(&GuiApplication::handleQuit, this));
The philosophy is that I create one window pointer where is possible paint cegui element. then I believe that we want obtain the window with the name OgreGuiDemo/TabCtrl/Page1/QuitButton I dont know what is that and why that hierachy relation is.
Maybe that question is stupid but it is hard to me do the correct question in other lenguaje

Re: Starting with CEGUI
Posted: Thu Oct 20, 2005 16:57
by lindquist
the getWindow method of WindowManager just returns a window that has already been created. Either through XML layouts or just from C++ code.
The naming "Some/Window/With/Slased/Name" is just a name. The slashes are'nt used for anything internally, but are often used to clarify relationship between windows.