textpsys

view src/image.h @ 0:a4ffd9e6984c

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 19 Aug 2015 09:13:48 +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_