1 // Computergraphik I
2 // Prof. Dr. Juergen Doellner
3 // Sommersemester 2001
4 //
5 // Rahmenprogramm fuer Aufgabenzettel 3
6
7 // Stephan Brumme, 702544
8 // last changes: May 12, 2001
9
10 #ifndef CG_RASTER_H
11 #define CG_RASTER_H
12
13 #include "cgapplication.h"
14
15 class CGRaster {
16 public:
17 CGRaster(int width, int height);
18 ~CGRaster();
19
20 int width() const;
21 int height() const;
22
23 void clear();
24
25 bool getPixel(int x, int y) const;
26 void setPixel(int x, int y);
27
28 void draw() const;
29
30 enum
31 {
32 MAXWIDTH = 100,
33 MAXHEIGHT = 100
};
34
35 private:
36 // Attribute fuer width, height und
37 // den bool-Array
38 int m_nWidth;
39 int m_nHeight;
40
41 bool* m_arBuffer;
42 };
43
44 #endif // CG_RASTER_H
45
46