aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/camera2d.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-08-24 00:25:31 +0100
committerGitHub <noreply@github.com>2017-08-24 00:25:31 +0100
commita326354ea6fccf76665a4212bf14daeba0f52ec8 (patch)
tree18cd2deb0c30b38d8ca7c5305735d2323259e020 /include/YAGE/camera2d.hpp
parent0a49874288f92c120d7e165550eb6dbbe1ef7307 (diff)
parent5403490b941f7c031bf1aafdb91b1098f69edbf2 (diff)
downloadYAGE-a326354ea6fccf76665a4212bf14daeba0f52ec8.tar.gz
YAGE-a326354ea6fccf76665a4212bf14daeba0f52ec8.zip
Merge pull request #3 from ymherklotz/developv0.1.0
Merge develop to master
Diffstat (limited to 'include/YAGE/camera2d.hpp')
-rw-r--r--include/YAGE/camera2d.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/YAGE/camera2d.hpp b/include/YAGE/camera2d.hpp
index e5e4e651..89f2f35c 100644
--- a/include/YAGE/camera2d.hpp
+++ b/include/YAGE/camera2d.hpp
@@ -14,9 +14,11 @@
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
-namespace yage {
+namespace yage
+{
-class Camera2D {
+class Camera2D
+{
private:
bool matrix_needs_update_ = true;
float scale_ = 1;
@@ -28,11 +30,11 @@ public:
Camera2D(int screen_width = 1280, int screen_height = 720);
// update camera location
- void update(GlslProgram& program);
+ void update(GlslProgram &program);
// camera movement
- void move(const glm::vec2& direction);
+ void move(const glm::vec2 &direction);
};
-} // yage
+} // yage
#endif