Blender V2.61 - r43446
|
32 bit color stored as BGRA. More...
#include <Color.h>
Public Member Functions | |
Color32 () | |
Color32 (const Color32 &c) | |
Color32 (unsigned char R, unsigned char G, unsigned char B) | |
Color32 (unsigned char R, unsigned char G, unsigned char B, unsigned char A) | |
Color32 (unsigned int U) | |
void | setRGBA (unsigned char R, unsigned char G, unsigned char B, unsigned char A) |
void | setBGRA (unsigned char B, unsigned char G, unsigned char R, unsigned char A=0xFF) |
operator unsigned int () const | |
Public Attributes | |
union { | |
struct { | |
unsigned char b | |
unsigned char g | |
unsigned char r | |
unsigned char a | |
} | |
unsigned int u | |
}; |
Color32::Color32 | ( | unsigned char | R, |
unsigned char | G, | ||
unsigned char | B | ||
) | [inline] |
Color32::Color32 | ( | unsigned char | R, |
unsigned char | G, | ||
unsigned char | B, | ||
unsigned char | A | ||
) | [inline] |
Color32::operator unsigned int | ( | ) | const [inline] |
void Color32::setBGRA | ( | unsigned char | B, |
unsigned char | G, | ||
unsigned char | R, | ||
unsigned char | A = 0xFF |
||
) | [inline] |
void Color32::setRGBA | ( | unsigned char | R, |
unsigned char | G, | ||
unsigned char | B, | ||
unsigned char | A | ||
) | [inline] |
union { ... } |
unsigned char Color32::a |
Definition at line 75 of file Color.h.
Referenced by component(), BlockATI2::decodeBlock(), BlockATI1::decodeBlock(), AlphaBlockDXT5::decodeBlock(), AlphaBlockDXT3::decodeBlock(), BlockCTX1::evaluatePalette(), BlockDXT1::evaluatePalette(), BlockDXT1::evaluatePalette3(), BlockDXT1::evaluatePalette4(), BlockDXT1::evaluatePaletteNV5x(), imb_load_dds(), ColorBlock::init(), setBGRA(), setRGBA(), and ColorBlock::swizzle().
unsigned char Color32::b |
Definition at line 75 of file Color.h.
Referenced by colorDistance(), colorLuminance(), component(), BlockATI2::decodeBlock(), BlockATI1::decodeBlock(), BlockCTX1::evaluatePalette(), BlockDXT1::evaluatePalette(), BlockDXT1::evaluatePalette3(), BlockDXT1::evaluatePalette4(), BlockDXT1::evaluatePaletteNV5x(), imb_load_dds(), ColorBlock::init(), setBGRA(), setRGBA(), and ColorBlock::swizzle().
unsigned char Color32::g |
Definition at line 75 of file Color.h.
Referenced by colorDistance(), colorLuminance(), component(), BlockATI2::decodeBlock(), BlockATI1::decodeBlock(), BlockCTX1::evaluatePalette(), BlockDXT1::evaluatePalette(), BlockDXT1::evaluatePalette3(), BlockDXT1::evaluatePalette4(), BlockDXT1::evaluatePaletteNV5x(), imb_load_dds(), ColorBlock::init(), setBGRA(), setRGBA(), and ColorBlock::swizzle().
unsigned char Color32::r |
Definition at line 75 of file Color.h.
Referenced by colorDistance(), colorLuminance(), component(), BlockATI2::decodeBlock(), BlockATI1::decodeBlock(), BlockCTX1::evaluatePalette(), BlockDXT1::evaluatePalette(), BlockDXT1::evaluatePalette3(), BlockDXT1::evaluatePalette4(), BlockDXT1::evaluatePaletteNV5x(), imb_load_dds(), ColorBlock::init(), setBGRA(), setRGBA(), and ColorBlock::swizzle().
unsigned int Color32::u |
Definition at line 77 of file Color.h.
Referenced by ColorBlock::init(), ColorBlock::isSingleColor(), and operator unsigned int().