xglcomp

view src/texture.h @ 6:3f908f812ec7

added docs
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 29 Jan 2016 10:23:08 +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_