textpsys
view src/image.h @ 3:b1c8d2784c72
made the timer internal to the effect, fx_draw doesn't take a time value any more
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 20 Aug 2015 06:40:23 +0300 |
parents | |
children |
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 #include "vec3.h"
6 class Image {
7 private:
8 unsigned char *own_pixels;
10 public:
11 int width, height;
12 unsigned char *pixels;
13 unsigned int texture;
14 int tex_width, tex_height;
16 Image();
17 ~Image();
19 void create(int xsz, int ysz, unsigned char *pix = 0);
20 void destroy();
22 unsigned int gen_texture();
23 };
25 #endif // IMAGE_H_