Code: Select all
inline bool loadLayout(const char* layout)
{
CEGUI::WindowManager& winMgr = CEGUI::WindowManager::getSingleton();
gRoot = winMgr.loadWindowLayout(layout);
if (gRoot) {
CEGUI::System::getSingleton().setGUISheet(gRoot); <<-- Here is the problem
gRoot->setMousePassThroughEnabled(true);
return true ;
}
return false;
}
The code works perfectly under Linux. So far I havent been able to gather more information, as the Debug version of the project doesnt runs because of some cryptic Windows error. I also tried the sampleas approach, using an image as background and the assigning the layout window as child. Any idea?