]> git.localhorst.tv Git - space.git/blobdiff - src/graphics/Color.h
move to SDL2
[space.git] / src / graphics / Color.h
index d561fc8dc3b119b2ae8675908474c009561efd3f..9260ad9560e0350a479fdcb7925bd49b7676e981 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef SPACE_COLOR_H_
 #define SPACE_COLOR_H_
 
-#include <SDL/SDL.h>
+#include <SDL.h>
 
 
 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;
 
 };