#include <Syndicate/Data/MapSubTile.h>
Public Member Functions | |
| template<typename TColors> | |
| void | get (TColors *subtile, unsigned pitch=_width, const TColors *colors=Colors< TColors >::_default) const |
Static Public Attributes | |
| static const unsigned | _width = Block32::_width |
| static const unsigned | _height = 16 |
Private Attributes | |
| Block32 | _lines [_height] |
| void Syndicate::Data::MapSubTile::get | ( | TColors * | subtile, | |
| unsigned | pitch = _width, |
|||
| const TColors * | colors = Colors< TColors >::_default | |||
| ) | const [inline] |
This method extract pixels of the subtile in the subtile array of uint8_t (palettized) or uint32_t (4bpp).
| [out] | subtile | array of pixels where the data should be stored |
| [in] | pitch | length of a scanline of tile in bytes |
| [in] | colors | lut for mapping palette indexes on the format of pixels |
const unsigned Syndicate::Data::MapSubTile::_width = Block32::_width [static] |
const unsigned Syndicate::Data::MapSubTile::_height = 16 [static] |
Block32 Syndicate::Data::MapSubTile::_lines[_height] [private] |
1.5.2