aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-07-27 23:11:47 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-07-27 23:11:47 +0100
commita3e428811fb82af7cefe0bb373b3b519d7cd375c (patch)
tree656f17163e8dbad50135216daca223f71090da18 /include
parent152522f1d4637a1749afd88ede8f24d1c312317a (diff)
downloadYAGE-a3e428811fb82af7cefe0bb373b3b519d7cd375c.tar.gz
YAGE-a3e428811fb82af7cefe0bb373b3b519d7cd375c.zip
Improving script and camera header
Diffstat (limited to 'include')
-rw-r--r--include/YAGE/camera2d.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/YAGE/camera2d.hpp b/include/YAGE/camera2d.hpp
index 11d8143f..400cfe02 100644
--- a/include/YAGE/camera2d.hpp
+++ b/include/YAGE/camera2d.hpp
@@ -19,15 +19,13 @@ namespace yage
class Camera2D
{
- // member variables
private:
bool matrix_needs_update_=true;
- float scale_=1.f;
+ float scale_=1;
glm::vec2 position_;
glm::mat4 camera_matrix_;
glm::mat4 ortho_matrix_;
- // member functions
public:
Camera2D(int screen_width=1280, int screen_height=720);
virtual ~Camera2D();