FastLED 3.9.15
Loading...
Searching...
No Matches

◆ rasterize() [1/3]

void fl::XYRasterU8Sparse::rasterize ( const span< const Tile2x2_u8 > & tiles)

Definition at line 29 of file raster_sparse.cpp.

29 {
30 // Tile2x2_u8::Rasterize(tiles, this, mAbsoluteBoundsSet ? &mAbsoluteBounds
31 // : nullptr);
32 if (tiles.size() == 0) {
33 FASTLED_WARN("Rasterize: no tiles");
34 return;
35 }
36 const rect<u16> *optional_bounds =
38
39 // Check if the bounds are set.
40 // draw all now unconditionally.
41 for (const auto &tile : tiles) {
42 // Rasterize the tile.
43 rasterize_internal(tile, optional_bounds);
44 }
45 return;
46}
fl::rect< u16 > mAbsoluteBounds
void rasterize_internal(const Tile2x2_u8 &tile, const rect< u16 > *optional_bounds=nullptr)
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, mAbsoluteBounds, mAbsoluteBoundsSet, rasterize_internal(), and fl::Slice< T >::size().

+ Here is the call graph for this function: