-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrameListener.hpp
More file actions
43 lines (29 loc) · 914 Bytes
/
Copy pathFrameListener.hpp
File metadata and controls
43 lines (29 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef GAME3D_FRAMELISTENER_HPP
#define GAME3D_FRAMELISTENER_HPP
#include <boost/shared_ptr.hpp>
#include <Ogre.h>
#include <OgreStringConverter.h>
#include <OgreException.h>
#define OIS_DYNAMIC_LIB
#include <OIS/OIS.h>
#include "Camera.hpp"
#include "World.hpp"
namespace Game3D {
class FrameListener: public Ogre::FrameListener, public Ogre::WindowEventListener {
public:
FrameListener(Ogre::RenderWindow* window, World& world);
void windowResized(Ogre::RenderWindow* rw);
void windowClosed(Ogre::RenderWindow* rw);
bool frameStarted(const Ogre::FrameEvent& evt);
bool frameRenderingQueued(const Ogre::FrameEvent& evt);
bool frameEnded(const Ogre::FrameEvent& evt);
protected:
World& world_;
Ogre::RenderWindow* window_;
//OIS Input devices
OIS::InputManager* inputManager_;
OIS::Mouse* mouse_;
OIS::Keyboard* keyboard_;
};
}
#endif