Aufgabe 7: Anwendung
Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel Union Reference
Pixel (colored) More...
#include <graphics/framebuffer.h>
Collaboration diagram for Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel:
Public Member Functions | |
Pixel (const unsigned data) | |
Constructor (using RGB value) More... | |
Pixel (const unsigned r, const unsigned g, const unsigned b) | |
Constructor (using explicit RGB components) More... | |
template<bool ALPHA, unsigned BITS> | |
Pixel (const struct SpritePixel< RGB, ALPHA, BITS > &other) | |
Constructor (using SpritePixel) More... | |
Color | getColor () const |
Get color of pixel. More... | |
template<unsigned BITS> | |
Pixel & | operator= (const struct SpritePixel< RGB, false, BITS > &other) |
Assign pixel (with colored SpritePixel) More... | |
template<unsigned BITS> | |
Pixel & | operator= (const struct SpritePixel< GREYSCALE, false, BITS > &other) |
Assign pixel (with greyscale SpritePixel) More... | |
template<unsigned BITS> | |
Pixel & | operator= (const struct SpritePixel< RGB, true, BITS > &other) |
Assign pixel (with greyscale SpritePixel supporting transparency) More... | |
template<unsigned BITS> | |
Pixel & | operator= (const struct SpritePixel< GREYSCALE, true, BITS > &other) |
Assign pixel (with greyscale SpritePixel supporting transparency) More... | |
Public Attributes | |
struct { | |
unsigned | data: COLORDEPTH |
RGB value. | |
}; | |
Bits per pixel. | |
PixelComponent< OFFSET_RED, BITS_RED > | red |
Red color component. | |
PixelComponent< OFFSET_GREEN, BITS_GREEN > | green |
Green color component. | |
PixelComponent< OFFSET_BLUE, BITS_BLUE > | blue |
Blue color component. | |
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>
union Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel
union Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel
Pixel (colored)
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>
|
inlineexplicit |
Constructor (using RGB value)
- Parameters
-
data RGB 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>
|
inline |
Constructor (using explicit RGB components)
Unused bits are zeroed.
- Parameters
-
r Red color component g Green color component b Blue color component
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<bool ALPHA, unsigned BITS>
|
inlineexplicit |
Constructor (using SpritePixel)
- Template Parameters
-
ALPHA true
if alpha channelBITS Size of mask
- Parameters
-
other other
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>
|
inline |
Get color of pixel.
- Returns
- color of pixel
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 BITS>
|
inline |
Assign pixel (with colored SpritePixel)
- Template Parameters
-
BITS Size of other pixels mask
- Parameters
-
other other pixel
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 BITS>
|
inline |
Assign pixel (with greyscale SpritePixel)
- Template Parameters
-
BITS Size of other pixels mask
- Parameters
-
other other pixel
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 BITS>
|
inline |
Assign pixel (with greyscale SpritePixel supporting transparency)
- Template Parameters
-
BITS Size of other pixels mask
- Parameters
-
other other pixel
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 BITS>
|
inline |
Assign pixel (with greyscale SpritePixel supporting transparency)
- Template Parameters
-
BITS Size of other pixels mask
- Parameters
-
other other pixel
The documentation for this union was generated from the following file:
- graphics/framebuffer.h