nuclear@17: #ifndef TEXTURE_H_ nuclear@17: #define TEXTURE_H_ nuclear@17: nuclear@17: struct texture { nuclear@17: unsigned int texid; nuclear@17: int width, height; nuclear@17: int img_width, img_height; /* in case we have a smaller image in a pow2 texture */ nuclear@17: }; nuclear@17: nuclear@21: #ifdef __cplusplus nuclear@21: extern "C" { nuclear@21: #endif nuclear@21: nuclear@17: int load_texture(struct texture *tex, const char *fname); nuclear@17: struct texture *get_texture(const char *fname); nuclear@17: nuclear@17: int gen_debug_texture(struct texture *tex); nuclear@17: nuclear@21: #ifdef __cplusplus nuclear@21: } nuclear@21: #endif nuclear@21: nuclear@17: #endif /* TEXTURE_H_ */