From c7dad1e929c0101386fbcdaa194e402d68f74752 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 23 Aug 2017 22:56:53 +0100 Subject: Updating docs --- classyage_1_1Camera2D.html | 310 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 310 insertions(+) create mode 100644 classyage_1_1Camera2D.html (limited to 'classyage_1_1Camera2D.html') diff --git a/classyage_1_1Camera2D.html b/classyage_1_1Camera2D.html new file mode 100644 index 00000000..9a3650a2 --- /dev/null +++ b/classyage_1_1Camera2D.html @@ -0,0 +1,310 @@ + + + + + + + +YAGE: yage::Camera2D Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
yage::Camera2D Class Reference
+
+
+ +

#include <camera2d.hpp>

+ + + + + + + + +

+Public Member Functions

 Camera2D (int screen_width=1280, int screen_height=720)
 
void update (GlslProgram &program)
 
void move (const glm::vec2 &direction)
 
+ + + + + + + + + + + +

+Private Attributes

bool matrix_needs_update_ = true
 
float scale_ = 1
 
glm::vec2 position_
 
glm::mat4 camera_matrix_
 
glm::mat4 ortho_matrix_
 
+

Constructor & Destructor Documentation

+ +

◆ Camera2D()

+ +
+
+ + + + + + + + + + + + + + + + + + +
yage::Camera2D::Camera2D (int screen_width = 1280,
int screen_height = 720 
)
+
+ +
+
+

Member Function Documentation

+ +

◆ move()

+ +
+
+ + + + + + + + +
void yage::Camera2D::move (const glm::vec2 & direction)
+
+ +
+
+ +

◆ update()

+ +
+
+ + + + + + + + +
void yage::Camera2D::update (GlslProgramprogram)
+
+ +
+
+

Member Data Documentation

+ +

◆ camera_matrix_

+ +
+
+ + + + + +
+ + + + +
glm::mat4 yage::Camera2D::camera_matrix_
+
+private
+
+ +
+
+ +

◆ matrix_needs_update_

+ +
+
+ + + + + +
+ + + + +
bool yage::Camera2D::matrix_needs_update_ = true
+
+private
+
+ +
+
+ +

◆ ortho_matrix_

+ +
+
+ + + + + +
+ + + + +
glm::mat4 yage::Camera2D::ortho_matrix_
+
+private
+
+ +
+
+ +

◆ position_

+ +
+
+ + + + + +
+ + + + +
glm::vec2 yage::Camera2D::position_
+
+private
+
+ +
+
+ +

◆ scale_

+ +
+
+ + + + + +
+ + + + +
float yage::Camera2D::scale_ = 1
+
+private
+
+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit