xgetshape
diff src/texture.h @ 0:2f02f100b20f
getting the window shape of another window
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 03 Nov 2015 00:42:08 +0200 |
parents | |
children | 9b560415bad4 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/texture.h Tue Nov 03 00:42:08 2015 +0200 1.3 @@ -0,0 +1,13 @@ 1.4 +#ifndef TEXTURE_H_ 1.5 +#define TEXTURE_H_ 1.6 + 1.7 +#include "image.h" 1.8 + 1.9 +struct texture { 1.10 + unsigned int id; 1.11 + int width, height, tex_width, tex_height; 1.12 +}; 1.13 + 1.14 +int image_texture(struct texture *tex, struct image *img); 1.15 + 1.16 +#endif /* TEXTURE_H_ */