Beispiel #1
0
 gcc_pure
 const HWColor map(const Color color) const
 {
   return HWColor(color);
 }
Beispiel #2
0
 gcc_pure
 HWColor GetPixel(PixelScalar x, PixelScalar y) const {
   return HWColor(::GetPixel(dc, x, y));
 }
Beispiel #3
0
 gcc_pure
 const HWColor map(const Color color) const
 {
   return HWColor(::SDL_MapRGB(surface->format, color.value.r,
                               color.value.g, color.value.b));
 }