#include <Syndicate/Data/Block.h>
Public Member Functions | |
template<typename TColors> | |
void | pixel (unsigned i, TColors *pix, const TColors *colors=Colors< TColors >::_default) const |
Static Public Attributes | |
static const unsigned | _width = sizeof(T) * 8 |
Private Attributes | |
T | _bits [alpha+depth] |
If there is an alpha channel the data are packed like this : | alpha | bit0 | bit1 | bit2 | bit3 |
void Syndicate::Data::Block< T, depth, alpha >::pixel | ( | unsigned | i, | |
TColors * | pix, | |||
const TColors * | colors = Colors< TColors >::_default | |||
) | const [inline] |
Fill the pixel byte with the color of the ith pixel of this block.
[in] | i | the index of the pixel in the range [0;_width] |
[out] | pix | the pointer to the byte where the color must be wrote |
T Syndicate::Data::Block< T, depth, alpha >::_bits[alpha+depth] [private] |
const unsigned Syndicate::Data::Block< T, depth, alpha >::_width = sizeof(T) * 8 [static] |
The width in pixels