Aufgabe 7: Anwendung
Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::PixelComponent< OFFSET, SIZE > Class Template Reference
Pixel component. More...
#include <graphics/framebuffer.h>
Public Member Functions | |
PixelComponent (unsigned value) | |
Constructor. More... | |
template<unsigned BITS> | |
void | set (const struct SpritePixelComponent< BITS > &other) |
Assign component value (from a SpritePixelComponent with different bit mask size) More... | |
void | set (const struct SpritePixelComponent< SIZE > &other) |
Assign component value (from a SpritePixelComponent with same bit mask size) More... | |
void | set (unsigned value) |
Assign component value (from an integer) More... | |
template<unsigned BITS> | |
void | blend (const struct SpritePixelComponent< BITS > &other, const struct SpritePixelComponent< BITS > &alpha) |
Alpha blend component value (from a SpritePixelComponent with different bit mask size) More... | |
void | blend (const struct SpritePixelComponent< SIZE > &other, const struct SpritePixelComponent< SIZE > &alpha) |
Alpha blend component value (from a SpritePixelComponent with same bit mask size) More... | |
Detailed Description
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 >
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
Constructor & Destructor Documentation
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>
|
inlineexplicit |
Constructor.
- Parameters
-
value Initial component value
Member Function Documentation
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>
|
inline |
Assign component value (from a SpritePixelComponent with different bit mask size)
- Template Parameters
-
BITS Size of bit mask
- Parameters
-
other new 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>
|
inline |
Assign component value (from a SpritePixelComponent with same bit mask size)
- Parameters
-
other new 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>
|
inline |
Assign component value (from an integer)
- Parameters
-
value new 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>
|
inline |
Alpha blend component value (from a SpritePixelComponent with different bit mask size)
- Template Parameters
-
BITS Size of bit mask
- 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>
|
inline |
Alpha blend component value (from a SpritePixelComponent with same bit mask size)
- Parameters
-
other component value to blend alpha transparency used for blending
The documentation for this class was generated from the following file:
- graphics/framebuffer.h