#include <measure-framerate-stubs.hh>
◆ done()
| void Source8Bpp::done |
( |
| ) |
|
|
inlineoverridevirtual |
◆ fillTiles()
| void Source8Bpp::fillTiles |
( |
int |
startLine, |
|
|
int |
lineCount, |
|
|
int |
tileWidth, |
|
|
int |
firstTile, |
|
|
std::vector< Tile::Ptr > & |
tiles |
|
) |
| |
|
overridevirtual |
Provide bitmap data
While the TiledBitmap is loaded, this function will be called several times. Each time, this function has to fill the provided tiles with bitmap data.
The given tiles are horizontally adjacent.
- Parameters
-
| startLine | y coordinate of the first line in the set of tiles |
| lineCount | The number of lines that are to be filled. This equals the height of the tiles |
| tileWidth | The width of one tile |
| firstTile | Index of the first tile provided. This means that the first x coordinate is firsttile * tileWidth |
| tiles | The tiles that are to be filled. |
Implements SourcePresentation.
87{
89 {
90 byte*
data = tile->data.get();
91 for(int y = 0; y < lineCount; y++)
92 {
93 for(int x = 0; x < tileWidth; x++)
94 {
95 *
data = (x + y) & 0xFF;
97 }
98 }
99 }
100}
uint8_t data
Definition blob-tests.cc:36
std::shared_ptr< Tile > Ptr
Definition tile.hh:19
◆ getName()
| std::string Source8Bpp::getName |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following files: