Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
oops, fixing README
[vor.git]
/
shape.h
1
#ifndef VOR_SHAPE_H
2
#define VOR_SHAPE_H
3
4
#include <SDL/SDL.h>
5
#include <stdint.h>
6
7
struct shape {
8
int w, h;
9
int mw; // mask width (number of uint32's)
10
uint32_t *mask;
11
uint32_t area;
12
};
13
14
void get_shape(SDL_Surface *img, struct shape *s);
15
int collide(int xdiff, int ydiff, struct shape *r, struct shape *s);
16
17
#endif // VOR_SHAPE_H