CEGUI issue - possible regression error?

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

Just popping in
Just popping in
Posts: 2
Joined: Sat Nov 10, 2018 13:48

CEGUI issue - possible regression error?

Postby martinbaker2727 » Wed Dec 05, 2018 10:28

This may be a bit more advanced/specific than this forum normally deals with, but I tried the CEGUI help forums and they seem deserted.

So I thought I'd ask here, because I *know* a bunch of clever programmers read these forums, so maybe one of you can help me
https://freemoviesite.me/ https://frpbypassapk.net/ https://techlinc.in https://techranc.com/eztv-proxy-sites/ https://radrdetector.com/best-radar-detector-reviews/.


On my old computer, I had a project that used CEGUI, and CEGUI was working just fine.
On my new computer (same hardware, OS updated with clean reinstall) all I get is a small square in the window colour in the middle of my opengl window.

Code hasn't changed. CEGUI version may have increased.

CEGUI isn't throwing me error messages (at least, none that I can see).

Relevent bits of code (a lot of the initialisation stuff for TaharezLook came direct from a tutorial):

#include <CEGUI/CEGUI.h>
#include <CEGUI/RendererModules/OpenGL/GL3Renderer.h>

class CEGUIHandler

CEGUI::Window* init(std::string base);
CEGUI::Window* get_base(std::string base);

CEGUI::Editbox* getActiveEditbox();

void set_mode(std::string base);

void hello_window(std::string base);

void menu(std::string base);

void model_viewer(std::string base);

std::map<std::string, CEGUI::Window*> roots;

//****************** header/implementation file split *******************

#include <CEGUI/System.h>

/*CEGUI::OpenGL3Renderer& myRenderer =*/ CEGUI::OpenGL3Renderer::bootstrapSystem();
//CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();

// initialise the required dirs for the DefaultResourceProvider
CEGUI::DefaultResourceProvider* rp = static_cast<CEGUI::DefaultResourceProvider*>
rp->setResourceGroupDirectory("schemes", "/usr/share/cegui-0/schemes/");
rp->setResourceGroupDirectory("imagesets", "/usr/share/cegui-0/imagesets/");
rp->setResourceGroupDirectory("fonts", "/usr/share/cegui-0/fonts/");
rp->setResourceGroupDirectory("layouts", "/usr/share/cegui-0/layouts/");
rp->setResourceGroupDirectory("looknfeels", "/usr/share/cegui-0/looknfeel/");
rp->setResourceGroupDirectory("lua_scripts", "/usr/share/cegui-0/lua_scripts/");
// This is only really needed if you are using Xerces and need to
// specify the schemas location
rp->setResourceGroupDirectory("schemas", "/usr/share/cegui-0/xml_schemas/");

// set the default resource groups to be used
// setup default group for validation schemas
CEGUI::XMLParser* parser = CEGUI::System::getSingleton().getXMLParser();
if (parser->isPropertyPresent("SchemaDefaultResourceGroup"))
parser->setProperty("SchemaDefaultResourceGroup", "schemas");
// create (load) the TaharezLook scheme file
// (this auto-loads the TaharezLook looknfeel and imageset files)
CEGUI::SchemeManager::getSingleton().createFromFile( "TaharezLook.scheme" );
// create (load) a font.
// The first font loaded automatically becomes the default font, but note
// that the scheme might have already loaded a font, so there may already
// be a default set - if we want the "DejaVuSans-10" font to definitely
// be the default, we should set the default explicitly afterwards.
CEGUI::FontManager::getSingleton().createFromFile( "DejaVuSans-10.font" );

CEGUI::System::getSingleton().getDefaultGUIContext().getMouseCursor().setDefaultImage( "TaharezLook/MouseArrow" );
CEGUI::System::getSingleton().getDefaultGUIContext().setDefaultTooltipType( "TaharezLook/Tooltip" );

CEGUI::Window* CEGUIHandler::init(std::string base)
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();

CEGUI::Window* myRoot = wmgr.createWindow( "DefaultWindow", "root" );
CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow( myRoot );
myRoot->setPosition( CEGUI::UVector2( CEGUI::UDim( 0.0f, 0.0f ), CEGUI::UDim( 0.0f, 0.0f ) ) );
myRoot->setSize( CEGUI::USize( CEGUI::UDim( 1.0f, 0.0f ), CEGUI::UDim( 1.0f, 0.0f ) ) );

roots[base] = myRoot;

return myRoot;

void CEGUIHandler::set_mode(std::string base)
CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow( roots[base] );

CEGUI::Window* CEGUIHandler::get_base(std::string base)
if (roots.find(base) != roots.end())
return roots[base];
return 0;

void CEGUIHandler::menu(std::string base)
CEGUI::Window* myRoot = roots[base];
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();

CEGUI::FrameWindow* fWnd = static_cast<CEGUI::FrameWindow*>(wmgr.createWindow( "TaharezLook/FrameWindow", "MenuWindow" ));
myRoot->addChild( fWnd );
fWnd->setPosition( CEGUI::UVector2( CEGUI::UDim( 0.25f, 0.0f ), CEGUI::UDim( 0.25f, 0.0f ) ) );
fWnd->setSize( CEGUI::USize( CEGUI::UDim( 0.5f, 0.0f ), CEGUI::UDim( 0.5f, 0.0f ) ) );
fWnd->setText( "Main Menu" );

CEGUI::Window* viewer_button = CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/Button","ViewerButton");
viewer_button->setText("Model Viewer");

CEGUI::Window* demo_button = CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/Button","DemoButton");

CEGUI::Window* exit_button = CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/Button","ExitButton");

I've got this all sequestered away in one class because it doesn't/didn't play nicely with the XWindows initialisation stuff, which is also sequestered away in it's own class. I'll probably split out the "make a new set of CEGUI bits" code at some point, into a selection of classes, but that's not really important if I can't get CEGUI windows to show up properly at all.

What's changed?/what have I messed up?/What other information do I need to fix this?
Last edited by martinbaker2727 on Thu Dec 06, 2018 09:19, edited 2 times in total.

User avatar
Posts: 1894
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: CEGUI issue - possible regression error?

Postby Ident » Wed Dec 05, 2018 20:28

Have you tried running the sample browser on this new computer with the (unspecified by you) CEGUI version that you are using? How does it look?
CrazyEddie: "I don't like GUIs"

Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 1 guest