pmc/include/surface.h
changeset 46 4b9e1ac40246
parent 45 7197576fedcf
child 54 c064ce9f40f5
equal deleted inserted replaced
45:7197576fedcf 46:4b9e1ac40246
    12 class Surface:public Object {
    12 class Surface:public Object {
    13   private:
    13   private:
    14     int width;
    14     int width;
    15     int height;
    15     int height;
    16     int depth;
    16     int depth;
       
    17     int bpp;
    17 
    18 
    18     Uint32 color, red, black;
    19     Uint32 color, red, green, blue, black;
    19     SDL_Surface *screen;
    20     SDL_Surface *screen;
    20 
    21 
    21   public:
    22   public:
    22     enum foregroundColor { BLACK, RED };
    23     enum foregroundColor { BLACK=1, RED, GREEN, BLUE };
    23       Surface (int w, int h, int d);
    24       Surface (int w, int h, int d);
    24      ~Surface ();
    25      ~Surface ();
    25 
    26 
    26     int getWidth () {
    27     int getWidth () {
    27         return width;
    28         return width;