#ifndef SPACE_COLOR_H_
#define SPACE_COLOR_H_
-#include <SDL/SDL.h>
+#include <SDL.h>
namespace space {
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;
};