aboutsummaryrefslogtreecommitdiff
path: root/src/camera/inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera/inc')
-rw-r--r--src/camera/inc/camera.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/camera/inc/camera.h b/src/camera/inc/camera.h
index 98cb240..9841315 100644
--- a/src/camera/inc/camera.h
+++ b/src/camera/inc/camera.h
@@ -35,6 +35,16 @@ struct camera
{
int last_w, last_h;
} screen;
+
+ struct cursor_pos_rt
+ {
+ const struct cursor_pos
+ {
+ unsigned x, y;
+ } *list;
+
+ size_t i, n;
+ } rt;
} cursor;
};
@@ -45,6 +55,7 @@ bool camera_translate(const struct camera *cam, const struct util_rect *dim, sho
void cursor_init(struct cursor *c);
bool cursor_collision(const struct camera *cam, const struct util_rect *d);
void cursor_pos(const struct camera *cam, unsigned long *x, unsigned long *y);
+void cursor_set_pos_list(struct cursor *c, const struct cursor_pos *pos, size_t n);
int cursor_render(const struct cursor *c);
#ifdef __cplusplus