27 #ifndef _CEGuiIrrlichtBaseApplication_h_
28 #define _CEGuiIrrlichtBaseApplication_h_
31 # pragma comment(lib, "irrlicht.lib")
32 #if !defined(CEGUI_STATIC)
34 # pragma comment(lib, "CEGUIIrrlichtRenderer_d.lib")
36 # pragma comment(lib, "CEGUIIrrlichtRenderer.lib")
39 # define _IRR_STATIC_LIB_ //Define this regardless if we are using a dll or not
41 # pragma comment(lib, "CEGUIIrrlichtRenderer_Static_d.lib")
43 # pragma comment(lib, "CEGUIIrrlichtRenderer_Static.lib")
48 #include "CEGuiBaseApplication.h"
49 #include "CEGUI/Size.h"
55 class IrrlichtEventPusher;
59 public irr::IEventReceiver
64 void destroyRenderer();
67 #if CEGUI_IRR_SDK_VERSION >= 14
68 bool OnEvent(
const irr::SEvent& event);
70 bool OnEvent(irr::SEvent event);
83 bool processEvent(
const irr::SEvent& event);
85 bool OnKeyDown(irr::EKEY_CODE key,
wchar_t wch,
bool ,
bool );
86 bool OnKeyUp(irr::EKEY_CODE key,
wchar_t ,
bool ,
bool );
87 bool OnMouse(irr::s32 x, irr::s32 y, irr::f32 w, irr::EMOUSE_INPUT_EVENT e);
89 irr::IrrlichtDevice* d_device;
90 irr::video::IVideoDriver* d_driver;
91 irr::scene::ISceneManager* d_smgr;
101 #endif // end of guard _CEGuiIrrlichtBaseApplication_h_
void endRendering()
Implementation function to perform required post-render operations.
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
void beginRendering(const float elapsed)
Implementation function to perform required pre-render operations.
Definition: CEGuiIrrlichtBaseApplication.h:58
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/EventPusher.h:37
void checkWindowResize()
member to check and handle resizing of the display window.
void run()
The abstract function for running the application.
CEGUI::Sizef d_lastDisplaySize
size of display last time a change was detected.
Definition: CEGuiIrrlichtBaseApplication.h:97
Base application abstract base class.
Definition: CEGuiBaseApplication.h:69
void destroyWindow()
The abstract function for destroying the renderer and the window.