27 #ifndef _CEGuiOgreBaseApplication_h_ 28 #define _CEGuiOgreBaseApplication_h_ 30 #include "CEGuiBaseApplication.h" 31 #include "CEGUI/CEGUI.h" 33 #include "CEGUI/RendererModules/Ogre/Renderer.h" 71 void setupDefaultConfigIfNeeded();
77 Ogre::Camera* d_camera;
78 Ogre::RenderWindow* d_window;
98 bool frameStarted(
const Ogre::FrameEvent& evt);
99 bool frameEnded(
const Ogre::FrameEvent& evt);
102 bool mouseMoved(
const OIS::MouseEvent &e);
103 bool keyPressed(
const OIS::KeyEvent &e);
104 bool keyReleased(
const OIS::KeyEvent &e);
105 bool mousePressed(
const OIS::MouseEvent &e, OIS::MouseButtonID
id);
106 bool mouseReleased(
const OIS::MouseEvent &e, OIS::MouseButtonID
id);
108 OIS::Mouse* getOISMouse();
117 OIS::InputManager* d_inputManager;
118 OIS::Keyboard* d_keyboard;
120 Ogre::Camera* d_camera;
121 Ogre::RenderWindow* d_window;
133 void windowResized(Ogre::RenderWindow* rw);
139 #endif // end of guard _CEGuiOgreBaseApplication_h_ Ogre FrameListener class where we deal with input processing and the like.
Definition: CEGuiOgreBaseApplication.h:90
static SamplesFrameworkBase * d_sampleApp
SampleFramework base used in the application.
Definition: CEGuiBaseApplication.h:175
void initialiseResourceGroupDirectories()
Setup standard sample resource group directory locations. Default uses the CEGUI::DefaultResourceProv...
CEGuiOgreBaseApplication()
Constructor.
void endRendering()
Implementation function to perform required post-render operations.
MouseButton
Enumeration of mouse buttons.
Definition: cegui/include/CEGUI/InputEvent.h:209
void beginRendering(const float elapsed)
Implementation function to perform required pre-render operations.
bool frameRenderingQueued(const Ogre::FrameEvent &evt)
Ogre frame listener callback that will trigger our specific context rendering.
void doFrameUpdate(float elapsed)
called by the frame listener to perform requried per-frame updates.
This is a base class that is intended to be used for all sample applications. Here we take care of co...
Definition: SamplesFrameworkBase.h:42
Base application abstract base class.
Definition: CEGuiBaseApplication.h:67
void destroyWindow()
The abstract function for destroying the renderer and the window.
void run()
The abstract function for initialising and running the application.
~CEGuiOgreBaseApplication()
Destructor.
window event listener class we use to hear abour window resizing
Definition: CEGuiOgreBaseApplication.h:128
Definition: CEGuiOgreBaseApplication.h:42
Definition: python_CEGUIOgreRenderer.h:13