|
| Pixel (const unsigned data) |
| Constructor (using RGB value)
|
|
| Pixel (const unsigned r, const unsigned g, const unsigned b) |
| Constructor (using explicit RGB components)
|
|
template<bool ALPHA, unsigned BITS> |
| Pixel (const struct SpritePixel< RGB, ALPHA, BITS > &other) |
| Constructor (using SpritePixel)
|
|
Color | getColor () const |
| Get color of pixel.
|
|
template<unsigned BITS> |
Pixel & | operator= (const struct SpritePixel< RGB, false, BITS > &other) |
| Assign pixel (with colored SpritePixel)
|
|
template<unsigned BITS> |
Pixel & | operator= (const struct SpritePixel< GREYSCALE, false, BITS > &other) |
| Assign pixel (with greyscale SpritePixel)
|
|
template<unsigned BITS> |
Pixel & | operator= (const struct SpritePixel< RGB, true, BITS > &other) |
| Assign pixel (with greyscale SpritePixel supporting transparency)
|
|
template<unsigned BITS> |
Pixel & | operator= (const struct SpritePixel< GREYSCALE, true, BITS > &other) |
| Assign pixel (with greyscale SpritePixel supporting transparency)
|
|
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)
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
-
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 |
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
-
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
-
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
-
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
-
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
-