Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

OverlayColor OSystem::RGBToColor ( uint8  r,
uint8  g,
uint8  b 
) [virtual]

Convert the given RGB triplet into an OverlayColor. A OverlayColor can be 8bit, 16bit or 32bit, depending on the target system. The default implementation generates a 16 bit color value, in the 565 format (that is, 5 bits red, 6 bits green, 5 bits blue).

See also:
colorToRGB

ARGBToColor

Definition at line 69 of file system.cpp.

Referenced by ARGBToColor().

                                                          {
      return ::RGBToColor<ColorMasks<565> >(r, g, b);
}


Generated by  Doxygen 1.6.0   Back to index