equal
deleted
inserted
replaced
18 Uint32 color, red, black; |
18 Uint32 color, red, black; |
19 SDL_Surface *screen; |
19 SDL_Surface *screen; |
20 |
20 |
21 public: |
21 public: |
22 enum foregroundColor { BLACK, RED }; |
22 enum foregroundColor { BLACK, RED }; |
23 Surface (int w, int h, int d); |
23 Surface (int w, int h, int d); |
24 ~Surface (); |
24 ~Surface (); |
25 |
25 |
26 int getWidth () { |
26 int getWidth () { |
27 return width; |
27 return width; |
28 }; |
28 }; |
|
29 |
29 int getHeight () { |
30 int getHeight () { |
30 return height; |
31 return height; |
31 }; |
32 }; |
32 |
33 |
33 void drawPixel (int x, int y); |
34 void drawPixel (int x, int y); |