My problem is though, when using:
Code: Select all
CEGUI::System::getSingleton().renderGUI()
It crashes the game, but, when commenting it out, it looks like the CEGUI stuff is being created sucessfully. Here is the log. When the "RenderGUI" is not commented out, it doesn't create a log.
10/07/2006 09:57:34 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
10/07/2006 09:57:34 (InfL1) + Crazy Eddie's GUI System - Event log +
10/07/2006 09:57:34 (InfL1) + (http://www.cegui.org.uk/) +
10/07/2006 09:57:34 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
10/07/2006 09:57:34 (InfL1) CEGUI::Logger singleton created.
10/07/2006 09:57:34 (InfL1) ---- Begining CEGUI System initialisation ----
10/07/2006 09:57:34 (InfL1) CEGUI::ImagesetManager singleton created
10/07/2006 09:57:34 (InfL1) CEGUI::FontManager singleton created.
10/07/2006 09:57:34 (InfL1) CEGUI::WindowFactoryManager singleton created
10/07/2006 09:57:34 (InfL1) CEGUI::WindowManager singleton created
10/07/2006 09:57:34 (InfL1) CEGUI::SchemeManager singleton created.
10/07/2006 09:57:34 (InfL1) CEGUI::MouseCursor singleton created.
10/07/2006 09:57:34 (InfL1) CEGUI::GlobalEventSet singleton created.
10/07/2006 09:57:34 (InfL1) CEGUI::WidgetLookManager singleton created.
10/07/2006 09:57:34 (InfL1) WindowFactory for 'DefaultWindow' windows added.
10/07/2006 09:57:34 (InfL1) WindowFactory for 'DragContainer' windows added.
10/07/2006 09:57:34 (InfL1) WindowFactory for 'ScrolledContainer' windows added.
10/07/2006 09:57:34 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
10/07/2006 09:57:34 (InfL1) CEGUI::System singleton created.
10/07/2006 09:57:34 (InfL1) ---- CEGUI System initialisation completed ----
10/07/2006 09:57:34 (InfL1) ---- Version 0.4.1 ----
10/07/2006 09:57:34 (InfL1) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based renderer module for CEGUI ----
10/07/2006 09:57:34 (InfL1) ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
10/07/2006 09:57:34 (InfL1) ---- Scripting module is: None ----
I've tried placing "RenderGUI" in glViewport and glEnable but both crash. I'm injecting a dll which hooks opengl rendering functions. If you could help it would be greatly appreciated.
Also, is it possible to use CEGUI without having to place "CEGUIBase.dll" and "OpenGLGUIRenderer.dll" in the game directory?