aboutsummaryrefslogtreecommitdiff
path: root/src/camera/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-12 22:51:01 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-12 23:19:03 +0200
commit08c26de540f711ec888a46a922c1f4b89386d8c6 (patch)
tree4196538302b97e3cf9888713461e958a6c1a197c /src/camera/inc
parent5226dc466354cd15dd50b3c11660db7cb38eabed (diff)
downloadjancity-08c26de540f711ec888a46a922c1f4b89386d8c6.tar.gz
camera: remove dependency against terrain
This will allow using camera for purposes other than showing the game map.
Diffstat (limited to 'src/camera/inc')
-rw-r--r--src/camera/inc/camera.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/camera/inc/camera.h b/src/camera/inc/camera.h
index 8356bd8..98cb240 100644
--- a/src/camera/inc/camera.h
+++ b/src/camera/inc/camera.h
@@ -14,6 +14,11 @@ extern "C"
struct camera
{
+ struct camera_dim
+ {
+ long w, h;
+ } dim;
+
int x, y, x_speed, y_speed;
unsigned int xt, yt;
bool pan;