X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fgraphics%2FColor.h;fp=src%2Fgraphics%2FColor.h;h=9260ad9560e0350a479fdcb7925bd49b7676e981;hp=d561fc8dc3b119b2ae8675908474c009561efd3f;hb=61c2d30a60d586cbe63885885c6a373c7713af1e;hpb=08d0e47634e1632c96ebe3308535a86f5e625b40 diff --git a/src/graphics/Color.h b/src/graphics/Color.h index d561fc8..9260ad9 100644 --- a/src/graphics/Color.h +++ b/src/graphics/Color.h @@ -1,7 +1,7 @@ #ifndef SPACE_COLOR_H_ #define SPACE_COLOR_H_ -#include +#include namespace space { @@ -13,16 +13,6 @@ struct Color { constexpr Color(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 0xFF) : r(r), g(g), b(b), a(a) { } - Uint32 MapRGB(SDL_Surface *s) const - { return MapRGB(s->format); } - Uint32 MapRGB(SDL_PixelFormat *f) const - { return SDL_MapRGB(f, r, g, b); } - - Uint32 MapRGBA(SDL_Surface *s) const - { return MapRGBA(s->format); } - Uint32 MapRGBA(SDL_PixelFormat *f) const - { return SDL_MapRGBA(f, r, g, b, a); } - Uint8 r, g, b, a; };