added fonts - works with sdl version
[winnie] / src / pixmap.h
1 #ifndef PIXMAP_H_
2 #define PIXMAP_H_
3
4 #include "geom.h"
5
6 class Pixmap {
7 public:
8         int width, height;
9         unsigned char *pixels;
10
11         Pixmap();
12         ~Pixmap();
13
14         int get_width() const;
15         int get_height() const;
16         Rect get_rect() const;
17
18         bool set_image(int x, int y, unsigned char *pix = 0);
19         const unsigned char *get_image() const;
20         unsigned char *get_image();
21
22         bool load(const char *fname);
23         bool save(const char *fname) const;
24 };
25
26 #endif  // PIXMAP_H_