MCPcopy Create free account
hub / github.com/DentonW/DevIL / ShortToColor888

Function ShortToColor888

DevIL/src-IL/src/il_dds-save.cpp:989–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987
988
989void ShortToColor888(ILushort Pixel, Color888 *Colour)
990{
991 Colour->r = ((Pixel & 0xF800) >> 11) << 3;
992 Colour->g = ((Pixel & 0x07E0) >> 5) << 2;
993 Colour->b = ((Pixel & 0x001F)) << 3;
994 return;
995}
996
997
998ILushort Color565ToShort(Color565 *Colour)

Callers 3

GenBitMaskFunction · 0.85
ChooseEndpointsFunction · 0.85
PreMultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected