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
commit3cb276b19fa21699aa7241956f5b11d1d5b24fe3 (patch)
tree39303246e4fa8ed9f61b439e05824b08ae1cfe50 /src/camera/inc
parent0f9e2d89589f05847fb7dc808da1594f0961b5b4 (diff)
downloadrts-3cb276b19fa21699aa7241956f5b11d1d5b24fe3.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;