|
FastLED 3.10.10
|
|
inline |
Fill selects the polygon backend (PolyFill::Exact by default; PolyFill::ABuffer for the faster 8x4 A-buffer kernel, which ignores CHUNK).
MAXN caps the vertex count and CHUNK the per-row accumulator width in px (must be a power of two).
The defaults (FL_GFX_POLYGON_DEFAULT_MAXN / _CHUNK in fl/gfx/canvas.h) are 8 / 16 on FL_PLATFORM_HAS_SMALL_STACK targets (AVR, ESP8266, ...) and 32 / 64 elsewhere, because the 32 / 64 frame does not fit in an AVR Uno's 2 KB of SRAM (measured figures at the macro definition). Smaller tiers shrink the stack – the rendered pixels are identical for polygons with at most MAXN vertices.
Fill selects the backend: PolyFill::Exact (default, exact per-pixel area) or PolyFill::ABuffer (8x4 A-buffer sampling; CHUNK is ignored).
Definition at line 1599 of file primitives.h.
References ABuffer, canvas, fl::DRAW_MODE_OVERWRITE, fl::gfx::detail::drawPolygonABufferCore(), fl::gfx::detail::drawPolygonCore(), and fl::FL_NO_EXCEPT.
Referenced by fl::gfx::Canvas< RGB_T >::drawPolygon(), fl::gfx::Canvas< RGB_T >::drawPolygon(), and drawPolygon().
Here is the call graph for this function:
Here is the caller graph for this function: