FastLED 3.10.6
Loading...
Searching...
No Matches

◆ setShape()

void fl::ScreenMap::setShape ( u32 index,
Shape::Type type,
const vec2f * vertices,
u32 count,
float thickness = 0.0f )

Definition at line 661 of file screenmap.cpp.hpp.

662 {
663 if (!vertices || count == 0) return;
664 if (index >= mShapes.size()) mShapes.resize(index + 1);
665 Shape &shape = mShapes[index];
666 shape.type = type;
667 shape.thickness = thickness;
668 shape.vertices.clear();
669 shape.vertices.reserve(count);
670 for (u32 i = 0; i < count; ++i) shape.vertices.push_back(vertices[i]);
671}
fl::vector< Shape > mShapes
Definition screenmap.h:145

References fl::FL_NO_EXCEPT, mShapes, fl::ScreenMap::Shape::thickness, fl::ScreenMap::Shape::type, and fl::ScreenMap::Shape::vertices.

Referenced by fl::parseV2SegmentArray().

+ Here is the caller graph for this function: