Pixel (colored)
More...
#include <graphics/framebuffer.h>
|
| | 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...
|
| |
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
Pixel (colored)
◆ Pixel() [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>
| Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel::Pixel |
( |
const unsigned |
data | ) |
|
|
inlineexplicit |
Constructor (using RGB value)
- Parameters
-
◆ Pixel() [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>
| Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel::Pixel |
( |
const unsigned |
r, |
|
|
const unsigned |
g, |
|
|
const unsigned |
b |
|
) |
| |
|
inline |
Constructor (using explicit RGB components)
Unused bits are zeroed.
- Parameters
-
| r | Red color component |
| g | Green color component |
| b | Blue color component |
◆ Pixel() [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<bool ALPHA, unsigned BITS>
| Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel::Pixel |
( |
const struct SpritePixel< RGB, ALPHA, BITS > & |
other | ) |
|
|
inlineexplicit |
Constructor (using SpritePixel)
- Template Parameters
-
| ALPHA | true if alpha channel |
| BITS | Size of mask |
- Parameters
-
◆ getColor()
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>
| Color Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel::getColor |
( |
| ) |
const |
|
inline |
Get color of pixel.
- Returns
- color of pixel
◆ operator=() [1/4]
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>
| Pixel& Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel::operator= |
( |
const struct SpritePixel< RGB, false, BITS > & |
other | ) |
|
|
inline |
Assign pixel (with colored SpritePixel)
- Template Parameters
-
| BITS | Size of other pixels mask |
- Parameters
-
◆ operator=() [2/4]
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>
| Pixel& Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel::operator= |
( |
const struct SpritePixel< GREYSCALE, false, BITS > & |
other | ) |
|
|
inline |
Assign pixel (with greyscale SpritePixel)
- Template Parameters
-
| BITS | Size of other pixels mask |
- Parameters
-
◆ operator=() [3/4]
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>
| Pixel& Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel::operator= |
( |
const struct SpritePixel< RGB, true, BITS > & |
other | ) |
|
|
inline |
Assign pixel (with greyscale SpritePixel supporting transparency)
- Template Parameters
-
| BITS | Size of other pixels mask |
- Parameters
-
◆ operator=() [4/4]
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>
| Pixel& Framebuffer< COLORDEPTH, OFFSET_RED, OFFSET_GREEN, OFFSET_BLUE, BITS_RED, BITS_GREEN, BITS_BLUE >::Pixel::operator= |
( |
const struct SpritePixel< GREYSCALE, true, BITS > & |
other | ) |
|
|
inline |
Assign pixel (with greyscale SpritePixel supporting transparency)
- Template Parameters
-
| BITS | Size of other pixels mask |
- Parameters
-
The documentation for this union was generated from the following file: