Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed gamerate to framelen
[vor.git]
/
shape.h
diff --git
a/shape.h
b/shape.h
index
c9a43fa
..
26b3b63
100644
(file)
--- a/
shape.h
+++ b/
shape.h
@@
-1,11
+1,17
@@
+#ifndef VOR_SHAPE_H
+#define VOR_SHAPE_H
+
#include <SDL/SDL.h>
#include <stdint.h>
struct shape {
#include <SDL/SDL.h>
#include <stdint.h>
struct shape {
- uint32_t w, h;
- uint32_t mw;
+ int w, h;
+ int mw; // mask width (number of uint32's)
uint32_t *mask;
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);
};
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