3dphotoshoot

annotate src/texture.h @ 21:4ca4e3c5a754

port to C++ completed, shader programs now use the SdrProg class
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 11 Jun 2015 04:56:33 +0300
parents aef7f51f6397
children
rev   line source
nuclear@17 1 #ifndef TEXTURE_H_
nuclear@17 2 #define TEXTURE_H_
nuclear@17 3
nuclear@17 4 struct texture {
nuclear@17 5 unsigned int texid;
nuclear@17 6 int width, height;
nuclear@17 7 int img_width, img_height; /* in case we have a smaller image in a pow2 texture */
nuclear@17 8 };
nuclear@17 9
nuclear@21 10 #ifdef __cplusplus
nuclear@21 11 extern "C" {
nuclear@21 12 #endif
nuclear@21 13
nuclear@17 14 int load_texture(struct texture *tex, const char *fname);
nuclear@17 15 struct texture *get_texture(const char *fname);
nuclear@17 16
nuclear@17 17 int gen_debug_texture(struct texture *tex);
nuclear@17 18
nuclear@21 19 #ifdef __cplusplus
nuclear@21 20 }
nuclear@21 21 #endif
nuclear@21 22
nuclear@17 23 #endif /* TEXTURE_H_ */