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
36 private:
37 // Attribute fuer width, height und
38 // den bool-Array
39 int m_nWidth;
40 int m_nHeight;
41
42 bool* m_arBuffer;
43 };
44
45 #endif // CG_RASTER_H
46