glviewvol

view src/image.h @ 3:32c4a7160350

den kanei kryo stin ellada
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 28 Dec 2014 21:48:15 +0200
parents 7bdf40403b9c
children 773f89037a35
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 class Image {
5 public:
6 int width, height;
7 float *pixels;
9 Image();
11 void destroy();
13 // if data == 0, just allocate space
14 bool set_pixels(int x, int y, float *data = 0);
16 bool load(const char *fname);
17 };
19 #endif // IMAGE_H_