From 72b41042223bfe31d70df8a71a50e4ba5d4f674d Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Sat, 23 Dec 2017 01:02:37 +0000 Subject: [Travis] Rebuilding documentation --- camera2d_8h_source.html | 164 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 camera2d_8h_source.html (limited to 'camera2d_8h_source.html') diff --git a/camera2d_8h_source.html b/camera2d_8h_source.html new file mode 100644 index 00000000..5c512424 --- /dev/null +++ b/camera2d_8h_source.html @@ -0,0 +1,164 @@ + + + + + + +YAGE: yage/core/camera2d.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  v0.1.3.0 +
+
Yet Another Game Engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ +
+ All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
+ + +
+ +
+ +
+
+
camera2d.h
+
+
+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 Camera
+
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  Camera(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
+
float scale_
Definition: camera2d.h:24
+
bool update_matrix_
Definition: camera2d.h:23
+
Definition: camera2d.h:20
+
Definition: glslprogram.h:19
+
void update(GlslProgram &program)
Definition: camera2d.cpp:24
+
glm::vec2 position_
Definition: camera2d.h:25
+
Camera(int screen_width=1280, int screen_height=720)
Definition: camera2d.cpp:17
+
void move(const glm::vec2 &direction)
Definition: camera2d.cpp:40
+
glm::mat4 ortho_matrix_
Definition: camera2d.h:27
+
glm::mat4 camera_matrix_
Definition: camera2d.h:26
+
+
+ + + + -- cgit