Jump to content
  • Advertisement
Sign in to follow this  

starting out with Crazy Eddie's GUI System

This topic is 4418 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post

Link to post
Share on other sites
We had crashes when we tried to initialize it before OpenGL. Hope this helps.

Share this post

Link to post
Share on other sites
I thought I'd give a little more info, incase I'm only doing one thing wrong.

Linked libs:

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


Window creation blah blah blah, then just before render:
Imageset* taharezImages = ImagesetManager::getSingleton().createImageset("datafiles/imagesets/TaharezLook.imageset");
WindowManager& winMgr = WindowManager::getSingleton();
DefaultWindow* root = (DefaultWindow*)winMgr.createWindow("DefaultWindow", "Root");
FrameWindow* wnd = (FrameWindow*)winMgr.createWindow("TaharezLook/FrameWindow", "Demo Window");
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.

Share this post

Link to post
Share on other sites
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.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!