3dphotoshoot
diff src/texture.h @ 17:aef7f51f6397
resource loading works
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 10 Jun 2015 06:56:27 +0300 |
parents | |
children | 4ca4e3c5a754 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/texture.h Wed Jun 10 06:56:27 2015 +0300 1.3 @@ -0,0 +1,15 @@ 1.4 +#ifndef TEXTURE_H_ 1.5 +#define TEXTURE_H_ 1.6 + 1.7 +struct texture { 1.8 + unsigned int texid; 1.9 + int width, height; 1.10 + int img_width, img_height; /* in case we have a smaller image in a pow2 texture */ 1.11 +}; 1.12 + 1.13 +int load_texture(struct texture *tex, const char *fname); 1.14 +struct texture *get_texture(const char *fname); 1.15 + 1.16 +int gen_debug_texture(struct texture *tex); 1.17 + 1.18 +#endif /* TEXTURE_H_ */