xgetshape

annotate src/texture.h @ 2:b832d3b3ed98

taking offset into account in get_window_shape
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 01 Feb 2016 12:18:29 +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_ */