pmc/include/surface.h
changeset 45 7197576fedcf
parent 42 83b8151b966d
child 46 4b9e1ac40246
equal deleted inserted replaced
44:bb6586b1c547 45:7197576fedcf
    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);