27 #ifndef _CEGuiOgreBaseApplication_h_ 28 #define _CEGuiOgreBaseApplication_h_ 30 #include "CEGuiBaseApplication.h" 31 #include "CEGUI/CEGUI.h" 33 #include "CEGUI/RendererModules/Ogre/Renderer.h" 36 #include <OgreFrameListener.h> 38 #include <OgreBuildSettings.h> 39 #ifdef OGRE_STATIC_LIB 40 # ifdef OGRE_BUILD_RENDERSYSTEM_D3D9 41 # define OGRE_STATIC_Direct3D9 43 # ifdef OGRE_BUILD_RENDERSYSTEM_D3D11 44 # define OGRE_STATIC_Direct3D11 46 # ifdef OGRE_BUILD_RENDERSYSTEM_GL 47 # define OGRE_STATIC_GL 49 # ifdef OGRE_BUILD_RENDERSYSTEM_GL3PLUS 50 # define OGRE_STATIC_GL3Plus 52 # ifdef OGRE_BUILD_RENDERSYSTEM_GLES 53 # define OGRE_STATIC_GLES 55 # ifdef OGRE_BUILD_RENDERSYSTEM_GLES2 56 # define OGRE_STATIC_GLES2 58 # include <OgreStaticPluginLoader.h> 78 void destroyRenderer();
90 void initialiseResourceGroupDirectories();
99 void setupDefaultConfigIfNeeded();
105 Ogre::Camera* d_camera;
106 Ogre::RenderWindow* d_window;
108 #ifdef OGRE_STATIC_LIB 109 Ogre::StaticPluginLoader* d_staticPluginLoader;
128 bool frameStarted(
const Ogre::FrameEvent& evt);
129 bool frameEnded(
const Ogre::FrameEvent& evt);
132 bool mouseMoved(
const OIS::MouseEvent &e);
133 bool keyPressed(
const OIS::KeyEvent &e);
134 bool keyReleased(
const OIS::KeyEvent &e);
135 bool mousePressed(
const OIS::MouseEvent &e, OIS::MouseButtonID
id);
136 bool mouseReleased(
const OIS::MouseEvent &e, OIS::MouseButtonID
id);
138 OIS::Mouse* getOISMouse();
147 OIS::InputManager* d_inputManager;
148 OIS::Keyboard* d_keyboard;
150 Ogre::Camera* d_camera;
151 Ogre::RenderWindow* d_window;
163 void windowResized(Ogre::RenderWindow* rw);
169 #endif // end of guard _CEGuiOgreBaseApplication_h_ Ogre FrameListener class where we deal with input processing and the like.
Definition: CEGuiOgreBaseApplication.h:120
static SamplesFrameworkBase * d_sampleApp
SampleFramework base used in the application.
Definition: CEGuiBaseApplication.h:188
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.
bool init(SamplesFrameworkBase *sampleApp, const CEGUI::String &logFile, const CEGUI::String &dataPathPrefixOverride)
Initialise the base application.
This is a base class that is intended to be used for all sample applications. Here we take care of co...
Definition: SamplesFrameworkBase.h:43
Base application abstract base class.
Definition: CEGuiBaseApplication.h:69
void destroyWindow()
The abstract function for destroying the renderer and the window.
~CEGuiOgreBaseApplication()
Destructor.
window event listener class we use to hear abour window resizing
Definition: CEGuiOgreBaseApplication.h:158
Definition: CEGuiOgreBaseApplication.h:66
Definition: python_CEGUIOgreRenderer.h:13
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62