13 constexpr Color(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 0xFF)
14 : r(r), g(g), b(b), a(a) { }
16 Uint32 MapRGB(SDL_Surface *s) const
17 { return MapRGB(s->format); }
18 Uint32 MapRGB(SDL_PixelFormat *f) const
19 { return SDL_MapRGB(f, r, g, b); }
21 Uint32 MapRGBA(SDL_Surface *s) const
22 { return MapRGBA(s->format); }
23 Uint32 MapRGBA(SDL_PixelFormat *f) const
24 { return SDL_MapRGBA(f, r, g, b, a); }