25 #include <CEGUI/CEGUI.h>
26 #include <CEGUI/RendererModules/OpenGL/CEGUIOpenGLRenderer.h>
41 CEGUI::OpenGLRenderer::bootstrapSystem();
43 throw GuiException(
"CEGUI can be used only if opengl is enabled!");
54 CEGUI::OpenGLRenderer::destroySystem();
60 CEGUI::System::getSingleton().renderGUI();
72 CEGUI::System::getSingleton().setGUISheet(
m_guiRoot);
83 CEGUI::System::getSingleton().injectTimePulse(
float(timeNow -
m_lastTimePulse));
CEGuiManager()
Constructor.
CEGUI::Window * getRootWindow()
virtual bool onSdlEvent(SDL_Event &event)
Receives input and converts it to librocket format, then it forwards it to librocket.
static TimeManager * instance()
void injectTimePulse()
Inject a time pulse to CEGUI.
uint32_t getTime() const
Get the time.
CEGuiInputProcessor * m_inputProcessor
Input processor.
double m_lastTimePulse
Last time pulse injected to CEGUI.
void setRootWindow(CEGUI::Window *setRootWindow)
Sets the root window of the gui system.
virtual void resizeTopContainer(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
Resizes the top container.
CEGUI::Window * m_guiRoot
Our root gui window.
virtual void turn()
Updates and renders the gui.