JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* rocks.c (hit_rock, pixel_hit_rock): fix more possible bugs.
[vor.git] / shape.h
diff --git a/shape.h b/shape.h
index 01a5708..9f7371d 100644 (file)
--- a/shape.h
+++ b/shape.h
@@ -6,12 +6,13 @@
 
 struct shape {
        int w, h;
-       int mw;
+       int mw; // mask width (number of uint32's)
        uint32_t *mask;
        uint32_t area;
 };
 
 void get_shape(SDL_Surface *img, struct shape *s);
 int collide(int xdiff, int ydiff, struct shape *r, struct shape *s);
+int pixel_collide(unsigned int xoff, unsigned int yoff, struct shape *r);
 
 #endif // VOR_SHAPE_H