quickgui hangs on setup()

murderv

27-08-2007 12:55:09

hello there,
i just downloaded new version and changed my createGUI() to work with it, but my app is hanging on the setup() call of quickGUI

void Aplication::createGUI()
{
qguiMgr = QuickGUI::GUIManager::getSingletonPtr();
qguiMgr->setup( renderWindow->getWidth(), renderWindow->getHeight() );

QuickGUI::Sheet *qsheet = QuickGUI::GUIManager::getSingleton().getDefaultSheet();
//qsheet->setDefaultFont("acmesa.14");

QuickGUI::Window* qwindow = qsheet->createWindow( QuickGUI::Rect(0.2, 0.9, 0.8, 0.1) );
qwindow->hideTitlebar();

QuickGUI::Button* qbutton = qwindow->createButton( QuickGUI::Rect(0.3, 0.36, 0.05, 0.2) );
qbutton->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_play, this );
//qbutton->getText()->setCaption("Play");

QuickGUI::Button* qbutton2 = qwindow->createButton( QuickGUI::Rect(0.5, 0.36, 0.05, 0.2) );
qbutton2->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_pause, this );

QuickGUI::Button* qbutton3 = qwindow->createButton( QuickGUI::Rect(0.7, 0.36, 0.05, 0.2) );
qbutton3->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_stop, this );

QuickGUI::Button* qbutton4 = qwindow->createButton( QuickGUI::Rect(0.9, 0.36, 0.05, 0.2) );
qbutton4->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_exit, this );
}


i debugged the app and it hangs on the _createDefaultTextures();
just stays there and do nothing. i have to kill the app's process.
what could it be ?

wambli

27-08-2007 14:27:09

Have a look at this
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5179

murderv

27-08-2007 15:37:27

ok ive changed depth as kunfoo mentioned and it works..
maybe you should update it in the pack file..

thanks for the help..

BTW i have a problem with mouse cursor.. it does not leave a trail but it draws a weird triangle on the screen where one vertex moves as i move the mouse.. its weird, ugly and wasnt supposed to be there..
no idea what it could be..

kungfoomasta

27-08-2007 16:06:00

Regarding the mouse, it has always displayed fine on my machine, but recently another user found out that my Vertex Buffer for the mouse cursor was set at size 4, when it should be 6. I've been trying to get time to fix the progress bar in OpenGL and release this as v0.9.6b, I will try to get this done in the next few days. Also note that if you grab the source from SVN you should see an improvement in the appearance of the font, and some bugfixes to TextBox. :)