X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=shape.h;h=01a5708bb0b1bfa33c17c263e2735630172e762c;hp=c9a43fab48acc003c9d7084076bb7a9ad1b65294;hb=46dacbe75dac20a1c6e1b61a2eb99ca25fc971ec;hpb=8193e09e49bc571f9c61e6e3adf45010271c08d5 diff --git a/shape.h b/shape.h index c9a43fa..01a5708 100644 --- a/shape.h +++ b/shape.h @@ -1,11 +1,17 @@ +#ifndef VOR_SHAPE_H +#define VOR_SHAPE_H + #include #include struct shape { - uint32_t w, h; - uint32_t mw; + 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