From be5d48d2eaed3af76f03297e376f7a67e8a8238f Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Wed, 20 Dec 2017 18:02:11 +0000 Subject: Rebuilding documentation --- camera2d_8h_source.html | 100 ++++++++++++++++++++---------------------------- 1 file changed, 42 insertions(+), 58 deletions(-) (limited to 'camera2d_8h_source.html') diff --git a/camera2d_8h_source.html b/camera2d_8h_source.html index d5bb0732..7766a4a7 100644 --- a/camera2d_8h_source.html +++ b/camera2d_8h_source.html @@ -30,7 +30,7 @@
YAGE -  v0.3.1 +  v0.1.3
Yet Another Game Engine
@@ -108,70 +108,54 @@ $(document).ready(function(){initNavTree('camera2d_8h_source.html','');});
camera2d.h
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * camera2d.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
-
9 /* ----------------------------------------------------------------------------
-
10  * camera2d.h
-
11  *
-
12  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
13  * MIT License, see LICENSE file for more details.
-
14  * ----------------------------------------------------------------------------
-
15  */
-
16 
-
17 #ifndef YAGE_CAMERA2D_H
-
18 #define YAGE_CAMERA2D_H
-
19 
-
20 #include "glslprogram.h"
-
21 
-
22 #include <glm/glm.hpp>
-
23 #include <glm/gtc/matrix_transform.hpp>
-
24 
-
25 namespace yage
-
26 {
-
27 
-
28 class Camera2D
-
29 {
-
30 private:
-
31  bool update_matrix_ = true;
-
32  float scale_ = 1;
-
33  glm::vec2 position_;
-
34  glm::mat4 camera_matrix_;
-
35  glm::mat4 ortho_matrix_;
-
36 
-
37 public:
-
38  Camera2D(int screen_width = 1280, int screen_height = 720);
-
39 
-
40  void update(GlslProgram &program);
-
41  void move(const glm::vec2 &direction);
-
42 };
-
43 
-
44 } // namespace yage
-
45 
-
46 #endif
-
glm::mat4 ortho_matrix_
Definition: camera2d.h:35
-
float scale_
Definition: camera2d.h:32
-
glm::mat4 camera_matrix_
Definition: camera2d.h:34
-
void update(GlslProgram &program)
Definition: camera2d.cpp:23
+Go to the documentation of this file.
1 
+
9 #ifndef YAGE_CAMERA2D_H
+
10 #define YAGE_CAMERA2D_H
+
11 
+
12 #include <glm/glm.hpp>
+
13 #include <glm/gtc/matrix_transform.hpp>
+
14 
+
15 namespace yage
+
16 {
+
17 
+
18 class GlslProgram;
+
19 
+
20 class Camera2D
+
21 {
+
22 private:
+
23  bool update_matrix_ = 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 
+
32  void update(GlslProgram &program);
+
33  void move(const glm::vec2 &direction);
+
34 };
+
35 
+
36 } // namespace yage
+
37 
+
38 #endif
+
glm::mat4 ortho_matrix_
Definition: camera2d.h:27
+
float scale_
Definition: camera2d.h:24
+
glm::mat4 camera_matrix_
Definition: camera2d.h:26
+
void update(GlslProgram &program)
Definition: camera2d.cpp:24
Definition: glslprogram.h:19
-
bool update_matrix_
Definition: camera2d.h:31
-
glm::vec2 position_
Definition: camera2d.h:33
- -
Definition: camera2d.h:28
-
void move(const glm::vec2 &direction)
Definition: camera2d.cpp:39
-
Camera2D(int screen_width=1280, int screen_height=720)
Definition: camera2d.cpp:16
+
bool update_matrix_
Definition: camera2d.h:23
+
glm::vec2 position_
Definition: camera2d.h:25
+
Definition: camera2d.h:20
+
void move(const glm::vec2 &direction)
Definition: camera2d.cpp:40
+
Camera2D(int screen_width=1280, int screen_height=720)
Definition: camera2d.cpp:17