25 #include <CEGUI/CEGUI.h> 26 #include <CEGUI/RendererModules/OpenGL/GLRenderer.h> 41 CEGUI::OpenGLRenderer::bootstrapSystem();
42 dynamic_cast<CEGUI::OpenGLRenderer*
>(CEGUI::System::getSingleton().getRenderer())->
43 enableExtraStateSettings(
true);
45 throw GuiException(
"CEGUI can be used only if opengl is enabled!");
56 CEGUI::OpenGLRenderer::destroySystem();
62 CEGUI::System::getSingleton().renderAllGUIContexts();
66 CEGUI::System::getSingleton().notifyDisplaySizeChanged(CEGUI::Sizef(width, height));
75 CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow(
m_guiRoot);
87 CEGUI::System::getSingleton().injectTimePulse(time_pulse);
88 CEGUI::System::getSingleton().getDefaultGUIContext().injectTimePulse(time_pulse);
CEGuiManager()
Constructor.
uint32_t getTime() const
Get the time.
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.
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.