blob: 39d8ab0bc295b397f0419950ba9a1f27d4de8821 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "types.h"
#include "util/Log.h"
#include "Camera.h"
#include "Color.h"
#include "Component.h"
using namespace crepe;
Camera::Camera(game_object_id_t id, const Color & bg_color, const ivec2 & screen,
const vec2 & viewport_size, const double & zoom, const vec2 & offset)
: Component(id),
bg_color(bg_color),
offset(offset),
screen(screen),
viewport_size(viewport_size),
zoom(zoom) {
dbg_trace();
}
Camera::~Camera() { dbg_trace(); }
|