summaryrefslogtreecommitdiffstats
path: root/balls.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-09-25 17:16:54 -0400
committerSam Anthony <sam@samanthony.xyz>2024-09-25 17:16:54 -0400
commit44dd6ad61dfed5d89f8abf7e8f41797501f071cc (patch)
tree299f0b12e0f19c9b9f117232a1b0f1266b879632 /balls.h
parent50f5164c529d57aeaf5c435b33683afabfc25c40 (diff)
downloadballs-44dd6ad61dfed5d89f8abf7e8f41797501f071cc.zip
refactor graphics functions
Diffstat (limited to 'balls.h')
-rw-r--r--balls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/balls.h b/balls.h
index 69adde9..0e98506 100644
--- a/balls.h
+++ b/balls.h
@@ -32,6 +32,10 @@ Point ptaddv(Point p, Vec v);
Vec V(double x, double y);
Vec Vpt(Point p, Point q);
+void drawbg(Image *walls, Image *bg);
+Image *alloccircle(int fg, int bg);
+void drawcircle(Image *m, Point pos);
+
int iscollision(Point p, Point q);
void collideball(Ball *b1, const Ball *b2);
void collidewall(Ball *b, Rectangle wall);