template<unsigned char COLORDEPTH, unsigned char OFFSET_RED, unsigned char OFFSET_GREEN, unsigned char OFFSET_BLUE, unsigned char BITS_RED, unsigned char BITS_GREEN, unsigned char BITS_BLUE>
template<unsigned OFFSET, unsigned SIZE>
class Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::PixelComponent< OFFSET, SIZE >
Pixel component.
- Template Parameters
-
OFFSET | Bit position of mask |
BITS | Size of mask |
template<unsigned char COLORDEPTH, unsigned char OFFSET_RED, unsigned char OFFSET_GREEN, unsigned char OFFSET_BLUE, unsigned char BITS_RED, unsigned char BITS_GREEN, unsigned char BITS_BLUE>
template<unsigned OFFSET, unsigned SIZE>
Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::PixelComponent< OFFSET, SIZE >::PixelComponent |
( |
unsigned |
value | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
value | Initial component value |
template<unsigned char COLORDEPTH, unsigned char OFFSET_RED, unsigned char OFFSET_GREEN, unsigned char OFFSET_BLUE, unsigned char BITS_RED, unsigned char BITS_GREEN, unsigned char BITS_BLUE>
template<unsigned OFFSET, unsigned SIZE>
template<unsigned BITS>
Alpha blend component value (from a SpritePixelComponent with different bit mask size)
- Template Parameters
-
- Parameters
-
other | component value to blend |
alpha | transparency used for blending |
template<unsigned char COLORDEPTH, unsigned char OFFSET_RED, unsigned char OFFSET_GREEN, unsigned char OFFSET_BLUE, unsigned char BITS_RED, unsigned char BITS_GREEN, unsigned char BITS_BLUE>
template<unsigned OFFSET, unsigned SIZE>
Alpha blend component value (from a SpritePixelComponent with same bit mask size)
- Parameters
-
other | component value to blend |
alpha | transparency used for blending |
template<unsigned char COLORDEPTH, unsigned char OFFSET_RED, unsigned char OFFSET_GREEN, unsigned char OFFSET_BLUE, unsigned char BITS_RED, unsigned char BITS_GREEN, unsigned char BITS_BLUE>
template<unsigned OFFSET, unsigned SIZE>
template<unsigned BITS>
Assign component value (from a SpritePixelComponent with different bit mask size)
- Template Parameters
-
- Parameters
-
template<unsigned char COLORDEPTH, unsigned char OFFSET_RED, unsigned char OFFSET_GREEN, unsigned char OFFSET_BLUE, unsigned char BITS_RED, unsigned char BITS_GREEN, unsigned char BITS_BLUE>
template<unsigned OFFSET, unsigned SIZE>
template<unsigned char COLORDEPTH, unsigned char OFFSET_RED, unsigned char OFFSET_GREEN, unsigned char OFFSET_BLUE, unsigned char BITS_RED, unsigned char BITS_GREEN, unsigned char BITS_BLUE>
template<unsigned OFFSET, unsigned SIZE>
void Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::PixelComponent< OFFSET, SIZE >::set |
( |
unsigned |
value | ) |
|
|
inline |
Assign component value (from an integer)
- Parameters
-