glviewvol

view src/image.h @ 4:04330eb80b36

lots of stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 29 Dec 2014 05:41:36 +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_