gpuray_glsl

annotate src/image.h @ 2:6e3a4daf3159

adding cones
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 09 Nov 2014 14:39:01 +0200
parents
children
rev   line source
nuclear@0 1 #ifndef IMAGE_H_
nuclear@0 2 #define IMAGE_H_
nuclear@0 3
nuclear@0 4 #include "material.h"
nuclear@0 5
nuclear@0 6 class Image {
nuclear@0 7 public:
nuclear@0 8 Color *pixels;
nuclear@0 9 int xsz, ysz;
nuclear@0 10
nuclear@0 11 Image();
nuclear@0 12 Image(int xsz, int ysz);
nuclear@0 13 ~Image();
nuclear@0 14
nuclear@0 15 void set_pixels(int xsz, int ysz, const Color *pix);
nuclear@0 16
nuclear@0 17 bool load(const char *fname);
nuclear@0 18 bool save(const char *fname) const;
nuclear@0 19 };
nuclear@0 20
nuclear@0 21 #endif // IMAGE_H_