gpuray_glsl

view src/image.h @ 0:f234630e38ff

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 09 Nov 2014 13:03:36 +0200
parents
children
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 #include "material.h"
6 class Image {
7 public:
8 Color *pixels;
9 int xsz, ysz;
11 Image();
12 Image(int xsz, int ysz);
13 ~Image();
15 void set_pixels(int xsz, int ysz, const Color *pix);
17 bool load(const char *fname);
18 bool save(const char *fname) const;
19 };
21 #endif // IMAGE_H_