equal
deleted
inserted
replaced
18 |
18 |
19 Uint32 color, red, green, blue, black; |
19 Uint32 color, red, green, blue, black; |
20 SDL_Surface *screen; |
20 SDL_Surface *screen; |
21 |
21 |
22 public: |
22 public: |
23 enum foregroundColor { BLACK=1, RED, GREEN, BLUE }; |
23 enum foregroundColor { BLACK = 1, RED, GREEN, BLUE }; |
24 Surface (int w, int h, int d); |
|
25 ~Surface (); |
|
26 |
24 |
27 int getWidth () { |
25 Surface (int w, int h, int d); |
28 return width; |
26 Surface (const Surface &) { /* Copy Constructor disabled */ }; |
29 }; |
27 virtual ~Surface (); |
30 |
28 |
31 int getHeight () { |
29 int getWidth () { return width; }; |
32 return height; |
30 int getHeight () { return height; }; |
33 }; |
|
34 |
31 |
35 void drawPixel (int x, int y); |
32 void drawPixel (int x, int y); |
36 void drawLine (int x1, int y1, int x2, int y2); |
33 void drawLine (int x1, int y1, int x2, int y2); |
37 |
34 |
38 void flip (); |
35 void flip (); |