/
Camera.hpp
55 lines (40 loc) · 1.09 KB
/
Camera.hpp
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
44
45
46
47
48
49
50
51
52
53
54
#ifndef CAMERA_HPP
#define CAMERA_HPP
#include "Managers/EventManager.hpp"
#include "Core/Systems.hpp"
#include "Core/Types.hpp"
#include "Managers/Entities/Entity.hpp"
using namespace std;
class Camera : public Entity
{
protected:
Ogre::Camera *mCamera;
Ogre::SceneNode *mPitchNode;
float mMove;
float mRotate;
public:
enum CameraType
{
FREE,
ATTACHED,
FIRST_PERSON,
DONT_USE // If we don't want predefined stuff
} mCameraType;
Camera(const string &entityName);
Ogre::Camera *handle();
Ogre::SceneNode *getPitchNode();
void loadFromFile(const string &filePath);
void setCameraType(CameraType type);
void setActive(bool state);
void setMoveStep(float step);
void setRotateStep(float step);
float getMoveStep();
float getRotateStep();
void onInited();
void onUpdated();
void onKeyPressed(const OIS::KeyEvent &e);
void onMouseMoved(const OIS::MouseEvent &e);
string type();
void update(float elapsed);
};
#endif /* CAMERA_HPP */