xgetshape
annotate src/texture.h @ 1:9b560415bad4
blured shadow
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 03 Nov 2015 04:08:32 +0200 |
parents | 2f02f100b20f |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef TEXTURE_H_ |
nuclear@0 | 2 #define TEXTURE_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include "image.h" |
nuclear@0 | 5 |
nuclear@0 | 6 struct texture { |
nuclear@0 | 7 unsigned int id; |
nuclear@0 | 8 int width, height, tex_width, tex_height; |
nuclear@0 | 9 }; |
nuclear@0 | 10 |
nuclear@0 | 11 int image_texture(struct texture *tex, struct image *img); |
nuclear@1 | 12 void destroy_texture(struct texture *tex); |
nuclear@0 | 13 |
nuclear@0 | 14 #endif /* TEXTURE_H_ */ |