starting out with Crazy Eddie's GUI System

Started by
2 comments, last by Dobbs 17 years, 11 months ago
I've looked at their main Wiki page but I couldn't find and complete simple examples. Either they have bits of simple code or large complete "examples". My problem being I can't put it all together. I can compile but my programs always crash on the very first API call, no matter what it is. Does anybody know of or have any simple stand-alone Crazy Eddie's GUI System tutorials or projects hanging around?
Advertisement
We had crashes when we tried to initialize it before OpenGL. Hope this helps.
I thought I'd give a little more info, incase I'm only doing one thing wrong.

Linked libs:
opengl32.lib
glu32.lib
winmm.lib
CEGUIBase_d.lib
OpenGLGUIRenderer_d.lib

Includes:
#include <gl/glu.h>
#include "CEGUI.h"
//#include "CEGUIConfig.h"
//#include "CEGUIBase.h"
//#include "CEGUIRenderer.h"
#include "renderers/OpenGLGUIRenderer/openglrenderer.h"

code:
Window creation blah blah blah, then just before render:    Imageset* taharezImages = ImagesetManager::getSingleton().createImageset("datafiles/imagesets/TaharezLook.imageset");    System::getSingleton().setDefaultMouseCursor(&taharezImages->getImage("MouseArrow"));    FontManager::getSingleton().createFont("../datafiles/fonts/Commonwealth-10.font");    SchemeManager::getSingleton().loadScheme("../datafiles/schemes/TaharezLookWidgets.scheme");    WindowManager& winMgr = WindowManager::getSingleton();    DefaultWindow* root = (DefaultWindow*)winMgr.createWindow("DefaultWindow", "Root");    System::getSingleton().setGUISheet(root);    FrameWindow* wnd = (FrameWindow*)winMgr.createWindow("TaharezLook/FrameWindow", "Demo Window");    root->addChildWindow(wnd);    wnd->setPosition(Point(0.25f, 0.25f));    wnd->setSize(Size(0.5f, 0.5f));	wnd->setMaximumSize(Size(1.0f, 1.0f));    wnd->setMinimumSize(Size(0.1f, 0.1f));    wnd->setText("Hello World!");


it crahses at the very first line of code with some sort of assert error.
Did you try stepping through the code in a debugger? You're probably accessing a null pointer or something.

There are also dedicated CEGUI forums at the CEGUI site. For specific technical questions that might be a good place to ask.

This topic is closed to new replies.

Advertisement