PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
Camera.hpp
Go to the documentation of this file.
1 #ifndef CAMERA_HPP
2 #define CAMERA_HPP
3 
5 
6 namespace pk
7 {
8 
9 class Camera : public GLTransformable
10 {
11 private:
12  Camera() {};
13 public:
14 
15  Camera(glm::vec2 startPosition);
16 
17  ~Camera();
18 
19  void update(GLStates &states, glm::mat4 &view);
20 
21  GLfloat m_zoom;
22 };
23 
24 }
25 
26 #endif // CAMERA_HPP
Definition: Game.hpp:7
void update(GLStates &states, glm::mat4 &view)
Decorator class for creating easing OpenGL transformations for game objects.
Definition: GLTransformable.hpp:51
GLfloat m_zoom
Definition: Camera.hpp:21
Stores the states used to draw OpenGL objects.
Definition: GLStates.hpp:16
Camera()
Definition: Camera.hpp:12
Definition: Camera.hpp:9