gpuray_glsl
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/image.h Sun Nov 09 13:03:36 2014 +0200 1.3 @@ -0,0 +1,21 @@ 1.4 +#ifndef IMAGE_H_ 1.5 +#define IMAGE_H_ 1.6 + 1.7 +#include "material.h" 1.8 + 1.9 +class Image { 1.10 +public: 1.11 + Color *pixels; 1.12 + int xsz, ysz; 1.13 + 1.14 + Image(); 1.15 + Image(int xsz, int ysz); 1.16 + ~Image(); 1.17 + 1.18 + void set_pixels(int xsz, int ysz, const Color *pix); 1.19 + 1.20 + bool load(const char *fname); 1.21 + bool save(const char *fname) const; 1.22 +}; 1.23 + 1.24 +#endif // IMAGE_H_