3dphotoshoot
view src/texture.h @ 27:3d082c566b53
fixed all the bugs, pc version works
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 18 Jun 2015 04:32:25 +0300 |
parents | aef7f51f6397 |
children |
line source
1 #ifndef TEXTURE_H_
2 #define TEXTURE_H_
4 struct texture {
5 unsigned int texid;
6 int width, height;
7 int img_width, img_height; /* in case we have a smaller image in a pow2 texture */
8 };
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
14 int load_texture(struct texture *tex, const char *fname);
15 struct texture *get_texture(const char *fname);
17 int gen_debug_texture(struct texture *tex);
19 #ifdef __cplusplus
20 }
21 #endif
23 #endif /* TEXTURE_H_ */