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

◆ rasterize() [1/3]

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

Definition at line 22 of file raster_sparse.cpp.

22 {
23 // Tile2x2_u8::Rasterize(tiles, this, mAbsoluteBoundsSet ? &mAbsoluteBounds
24 // : nullptr);
25 if (tiles.size() == 0) {
26 FASTLED_WARN("Rasterize: no tiles");
27 return;
28 }
29 const rect<int> *optional_bounds =
31
32 // Check if the bounds are set.
33 // draw all now unconditionally.
34 for (const auto &tile : tiles) {
35 // Rasterize the tile.
36 rasterize_internal(tile, optional_bounds);
37 }
38 return;
39}
fl::rect< int > mAbsoluteBounds
void rasterize_internal(const Tile2x2_u8 &tile, const rect< int > *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: