5 #ifndef FLUTTER_IMPELLER_TESSELLATOR_TESSELLATOR_LIBTESS_H_ 
    6 #define FLUTTER_IMPELLER_TESSELLATOR_TESSELLATOR_LIBTESS_H_ 
   13 struct TESStesselator;
 
   46                                              size_t vertices_count,
 
   47                                              const uint16_t* indices,
 
   48                                              size_t indices_count)>;
 
An extended tessellator that offers arbitrary/concave tessellation via the libtess2 library.
std::function< bool(const float *vertices, size_t vertices_count, const uint16_t *indices, size_t indices_count)> BuilderCallback
A callback that returns the results of the tessellation.
TessellatorLibtess::Result Tessellate(const PathSource &source, Scalar tolerance, const BuilderCallback &callback)
Generates filled triangles from the path. A callback is invoked once for the entire tessellation.
void DestroyTessellator(TESStesselator *tessellator)
std::unique_ptr< TESStesselator, decltype(&DestroyTessellator)> CTessellator