libresman
view examples/imgthumbs/src/thumbs.h @ 10:4d18498a0078
moved the resource manager a bit further
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 05 Feb 2014 02:01:49 +0200 |
parents | |
children | bebc065a941f |
line source
1 #ifndef THUMBS_H_
2 #define THUMBS_H_
5 struct thumbnail {
6 char *fname;
7 unsigned int tex;
8 float aspect;
10 float layout_pos[2];
11 float layout_size[2];
13 struct thumbnail *next;
14 };
16 struct thumbnail *create_thumbs(const char *dirpath);
17 void free_thumbs(struct thumbnail *thumbs);
19 void draw_thumbs(struct thumbnail *thumbs, float thumb_sz, float start_y);
21 #endif /* THUMBS_H_ */