nuclear@4: #ifndef TEXTURE_H_
nuclear@4: #define TEXTURE_H_
nuclear@4: 
nuclear@4: #include <X11/Xlib.h>
nuclear@4: 
nuclear@4: class Texture {
nuclear@4: private:
nuclear@4: 	unsigned int tex;
nuclear@4: 	int width, height;
nuclear@4: 
nuclear@4: public:
nuclear@4: 	Texture();
nuclear@4: 	~Texture();
nuclear@4: 
nuclear@4: 	void set_image(int x, int y, unsigned char *pix = 0);
nuclear@4: 	void set_image(Display *dpy, Pixmap pixmap);
nuclear@4: 
nuclear@4: 	int get_width() const;
nuclear@4: 	int get_height() const;
nuclear@4: 
nuclear@4: 	unsigned int get_id() const;
nuclear@4: };
nuclear@4: 
nuclear@4: #endif	// TEXTURE_H_