X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=shape.h;h=01a5708bb0b1bfa33c17c263e2735630172e762c;hp=a76951dbecc0c9152778099102896b3644a5682d;hb=427e28fed419596ebf8b4b5b49d8e27fbb97b185;hpb=2bea0659b8edff14f1554d2540780f54ccdc21c9 diff --git a/shape.h b/shape.h index a76951d..01a5708 100644 --- a/shape.h +++ b/shape.h @@ -1,3 +1,6 @@ +#ifndef VOR_SHAPE_H +#define VOR_SHAPE_H + #include #include @@ -5,7 +8,10 @@ struct shape { int w, h; int mw; 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); + +#endif // VOR_SHAPE_H