X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FColor.h;h=9260ad9560e0350a479fdcb7925bd49b7676e981;hb=1cb5ed22d7772abe6f9893be90f26f46dbde39f7;hp=d561fc8dc3b119b2ae8675908474c009561efd3f;hpb=96ab5904b059e00e78b26a6527790c8dc951e324;p=space.git 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; };