Flutter Engine
The Flutter Engine
|
An object which produces a list of vertices as |Point|s that tessellate a previously provided shape and delivers the vertices through a |TessellatedVertexProc| callback. More...
#include <tessellator.h>
Public Member Functions | |
virtual PrimitiveType | GetTriangleType () const =0 |
Returns the |PrimitiveType| that describes the relationship among the list of vertices produced by the |GenerateVertices| method. More... | |
virtual size_t | GetVertexCount () const =0 |
Returns the number of vertices that the generator plans to produce, if known. More... | |
virtual void | GenerateVertices (const TessellatedVertexProc &proc) const =0 |
Generate the vertices and deliver them in the necessary order (as required by the PrimitiveType) to the given callback function. More... | |
An object which produces a list of vertices as |Point|s that tessellate a previously provided shape and delivers the vertices through a |TessellatedVertexProc| callback.
The object can also provide advance information on how many vertices it will generate.
Definition at line 91 of file tessellator.h.
|
pure virtual |
Generate the vertices and deliver them in the necessary order (as required by the PrimitiveType) to the given callback function.
Implemented in impeller::Tessellator::EllipticalVertexGenerator.
|
pure virtual |
Returns the |PrimitiveType| that describes the relationship among the list of vertices produced by the |GenerateVertices| method.
Most generators will deliver |kTriangleStrip| triangles
Implemented in impeller::Tessellator::EllipticalVertexGenerator.
|
pure virtual |
Returns the number of vertices that the generator plans to produce, if known.
This value is advisory only and can be used to reserve space where the vertices will be placed, but the count may be an estimate.
Implementations are encouraged to avoid overestimating the count by too large a number and to provide a best guess so as to minimize potential buffer reallocations as the vertices are delivered.
Implemented in impeller::Tessellator::EllipticalVertexGenerator.