YAGE
v0.1.1
Yet Another Game Engine
|
#include <camera2d.h>
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 | update_matrix_ = true |
float | scale_ = 1 |
glm::vec2 | position_ |
glm::mat4 | camera_matrix_ |
glm::mat4 | ortho_matrix_ |
yage::Camera2D::Camera2D | ( | int | screen_width = 1280 , |
int | screen_height = 720 |
||
) |
void yage::Camera2D::move | ( | const glm::vec2 & | direction | ) |
void yage::Camera2D::update | ( | GlslProgram & | program | ) |
|
private |
|
private |
|
private |
|
private |
|
private |