nuclear@0: #ifndef TEXTURE_H_ nuclear@0: #define TEXTURE_H_ nuclear@0: nuclear@0: #include "image.h" nuclear@0: nuclear@0: struct texture { nuclear@0: unsigned int id; nuclear@0: int width, height, tex_width, tex_height; nuclear@0: }; nuclear@0: nuclear@0: int image_texture(struct texture *tex, struct image *img); nuclear@1: void destroy_texture(struct texture *tex); nuclear@0: nuclear@0: #endif /* TEXTURE_H_ */