Sign in to follow this  
arbuckle911

starting out with Crazy Eddie's GUI System

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
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.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this