Pixel component.
More...
#include <framebuffer.h>
|
unsigned | __pad0__: OFFSET |
| Reserved space for offset.
|
|
unsigned | value: SIZE |
| 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>
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 |
◆ PixelComponent()
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>
Constructor.
- Parameters
-
value | Initial component value |
◆ blend() [1/2]
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 |
◆ blend() [2/2]
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 |
◆ set() [1/3]
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
-
◆ set() [2/3]
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>
◆ set() [3/3]
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
-
The documentation for this class was generated from the following file: