libresman

diff examples/imgthumbs/src/thumbs.h @ 1:469ce01809bc

rudimentary imgthumbs "example program". doesn't use libresman yet
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 31 Jan 2014 03:17:24 +0200
parents
children bebc065a941f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/imgthumbs/src/thumbs.h	Fri Jan 31 03:17:24 2014 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +#ifndef THUMBS_H_
     1.5 +#define THUMBS_H_
     1.6 +
     1.7 +
     1.8 +struct thumbnail {
     1.9 +	char *fname;
    1.10 +	unsigned int tex;
    1.11 +	float aspect;
    1.12 +
    1.13 +	float layout_pos[2];
    1.14 +	float layout_size[2];
    1.15 +
    1.16 +	struct thumbnail *next;
    1.17 +};
    1.18 +
    1.19 +struct thumbnail *create_thumbs(const char *dirpath);
    1.20 +void free_thumbs(struct thumbnail *thumbs);
    1.21 +
    1.22 +void draw_thumbs(struct thumbnail *thumbs, float thumb_sz, float start_y);
    1.23 +
    1.24 +#endif	/* THUMBS_H_ */