X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=shape.h;h=01a5708bb0b1bfa33c17c263e2735630172e762c;hp=a76951dbecc0c9152778099102896b3644a5682d;hb=46dacbe75dac20a1c6e1b61a2eb99ca25fc971ec;hpb=e3ee5ceeccdd8f3b82c7ec2df50e3a9f2c77914d 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