glviewvol

view src/image.h @ 2:701507c8238f

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 28 Dec 2014 15:26:36 +0200
parents
children 32c4a7160350
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 class Image {
5 public:
6 int width, height;
7 float *pixels;
9 Image();
10 ~Image();
12 // if data == 0, just allocate space
13 bool set_pixels(int x, int y, float *data = 0);
15 bool load(const char *fname);
16 };
18 #endif // IMAGE_H_