projects
/
liquidmodel
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial commit
[liquidmodel]
/
src
/
shapescr.h
1
#ifndef SHAPESCR_H_
2
#define SHAPESCR_H_
3
4
#include <stdint.h>
5
6
struct image {
7
uint32_t *pixels;
8
int width, height;
9
unsigned int tex;
10
};
11
12
struct shape {
13
struct image img;
14
int x, y, goalx, goaly;
15
};
16
17
struct shape_screen {
18
struct image bg;
19
struct shape *shapes;
20
int num_shapes;
21
};
22
23
struct shape_screen *load_sscr(const char *fname);
24
void free_sscr(struct shape_screen *sscr);
25
26
#endif /* SHAPESCR_H_ */