gpuray_glsl
view src/image.h @ 2:6e3a4daf3159
adding cones
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sun, 09 Nov 2014 14:39:01 +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_