25 #include <cegui-0/CEGUI/CEGUI.h>
26 #include <cegui-0/CEGUI/RendererModules/OpenGL/GLRenderer.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().renderAllGUIContexts();
72 CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow(
m_guiRoot);
84 CEGUI::System::getSingleton().injectTimePulse(time_pulse);
85 CEGUI::System::getSingleton().getDefaultGUIContext().injectTimePulse(time_pulse);
CEGUI::Window * m_guiRoot
Our root gui window.
virtual ~CEGui_0Manager()
CEGUI::Window * getRootWindow()
virtual bool onSdlEvent(SDL_Event &event)
Receives input and converts it to librocket format, then it forwards it to librocket.
CEGui_0InputProcessor * m_inputProcessor
Input processor.
double m_lastTimePulse
Last time pulse injected to CEGUI.
static TimeManager * instance()
void injectTimePulse()
Inject a time pulse to CEGUI.
uint32_t getTime() const
Get the time.
void setRootWindow(CEGUI::Window *setRootWindow)
Sets the root window of the gui system.
virtual void turn()
Updates and renders the gui.
virtual void resizeTopContainer(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
Resizes the top container.
CEGui_0Manager()
Constructor.