xglcomp

view src/texture.h @ 8:b0081a0c211f

damage issues
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 30 Jan 2016 07:58:07 +0200
parents
children
line source
1 #ifndef TEXTURE_H_
2 #define TEXTURE_H_
4 #include <X11/Xlib.h>
6 class Texture {
7 private:
8 unsigned int tex;
9 int width, height;
11 public:
12 Texture();
13 ~Texture();
15 void set_image(int x, int y, unsigned char *pix = 0);
16 void set_image(Display *dpy, Pixmap pixmap);
18 int get_width() const;
19 int get_height() const;
21 unsigned int get_id() const;
22 };
24 #endif // TEXTURE_H_