gpuray_glsl
view src/image.h @ 4:2ed3da7dc0bc
broken
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 10 Nov 2014 01:26:00 +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_