From 3d96965ecd28b9037a83c4b22f65fcf502dce336 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 29 Jul 2017 10:00:20 +0100 Subject: Updating docs --- camera2d_8hpp_source.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'camera2d_8hpp_source.html') diff --git a/camera2d_8hpp_source.html b/camera2d_8hpp_source.html index 69893449..9dc0fe66 100644 --- a/camera2d_8hpp_source.html +++ b/camera2d_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,13 +68,11 @@ $(function() {
camera2d.hpp
-
1 /* ----------------------------------------------------------------------------
2  * camera2d.hpp
3  *
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5  * See file LICENSE for more details
6  * ----------------------------------------------------------------------------
7  */
8 
9 #ifndef CAMERA_2D_HPP
10 #define CAMERA_2D_HPP
11 
12 #include "glslprogram.hpp"
13 
14 #include <glm/glm.hpp>
15 #include <glm/gtc/matrix_transform.hpp>
16 
17 namespace yage
18 {
19 
20 class Camera2D
21 {
22 private:
23  bool matrix_needs_update_=true;
24  float scale_=1;
25  glm::vec2 position_;
26  glm::mat4 camera_matrix_;
27  glm::mat4 ortho_matrix_;
28 
29 public:
30  Camera2D(int screen_width=1280, int screen_height=720);
31  virtual ~Camera2D();
32 
33  // update camera location
34  void update(GlslProgram &program);
35  // camera movement
36  void move(const glm::vec2 &direction);
37 };
38 
39 } // yage
40 
41 #endif
Definition: glslprogram.hpp:19
-
Definition: camera2d.hpp:20
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * camera2d.hpp
3  *
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5  * See file LICENSE for more details
6  * ----------------------------------------------------------------------------
7  */
8 
9 #ifndef CAMERA_2D_HPP
10 #define CAMERA_2D_HPP
11 
12 #include "glslprogram.hpp"
13 
14 #include <glm/glm.hpp>
15 #include <glm/gtc/matrix_transform.hpp>
16 
17 namespace yage
18 {
19 
20 class Camera2D
21 {
22 private:
23  bool matrix_needs_update_=true;
24  float scale_=1;
25  glm::vec2 position_;
26  glm::mat4 camera_matrix_;
27  glm::mat4 ortho_matrix_;
28 
29 public:
30  Camera2D(int screen_width=1280, int screen_height=720);
31  virtual ~Camera2D();
32 
33  // update camera location
34  void update(GlslProgram &program);
35  // camera movement
36  void move(const glm::vec2 &direction);
37 };
38 
39 } // yage
40 
41 #endif
Definition: camera2d.hpp:17
-- cgit