From 460d9bda5f03c5da29864fa9dd160848097be51b Mon Sep 17 00:00:00 2001
From: TravisBot <>
Date: Sat, 6 Jan 2018 11:36:50 +0000
Subject: [Travis] Rebuilding documentation
---
classyage_1_1Camera.html | 159 +++++++++++++++--------------------------------
1 file changed, 51 insertions(+), 108 deletions(-)
(limited to 'classyage_1_1Camera.html')
diff --git a/classyage_1_1Camera.html b/classyage_1_1Camera.html
index a2992d24..d66ed4d1 100644
--- a/classyage_1_1Camera.html
+++ b/classyage_1_1Camera.html
@@ -108,7 +108,6 @@ $(document).ready(function(){initNavTree('classyage_1_1Camera.html','');});
+
Creates a camera that looks onto the scene.
+
The screen width and screen height should be the current size of the window that the camera is being used on so that is functions correctly.
+
- Parameters
-
+
+ screen_width | Current screen width of the Window. |
+ screen_height | Current screen height of the Window. |
+
+
+
+
@@ -181,122 +183,63 @@ Private Attributes
+
Moves the camera using a two-dimensional displacement vector to describe the movement.
+
- Parameters
-
+
+ direction | Two-dimensional vector to describe the displacement of the camera. |
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
- glm::mat4 yage::Camera::camera_matrix_ |
-
-
- |
-
-private |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- glm::mat4 yage::Camera::ortho_matrix_ |
-
-
- |
-
-private |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- glm::vec2 yage::Camera::position_ |
-
-
- |
-
-private |
-
-
-
+
Updates the camera matrix value in the shader program that is passed to it.
+
This must be a parameter P
in the shader for this function to work.
+
- Parameters
-
+
+ program | Shader program to make changes to. |
+
+
+
+
- Todo:
- Make this function more general to be able to be able to use any parametre in then shader as the camera matrix and not make it dependent on it being
P
.
-
+
-
-
-
- float yage::Camera::scale_ = 1 |
+ void yage::Camera::zoom |
+ ( |
+ float |
+ factor | ) |
+ |
- |
-
-private |
-
-
-
-
-
-
-
-
-
-
-
-
- bool yage::Camera::update_matrix_ = true |
-
-
- |
-
-private |
-
-
-
+
Zooms the camera by an incremental amount.
+
- Parameters
-
+
+ factor | Factor by which the camera should zoom. This can also be a negative number for the camera to zoom out. |
+
+
+
@@ -310,7 +253,7 @@ Private Attributes