Flutter Engine
The Flutter Engine
|
#include <GrTriangulator.h>
Public Member Functions | |
Vertex (const SkPoint &point, uint8_t alpha) | |
bool | isConnected () const |
Public Attributes | |
SkPoint | fPoint |
Vertex * | fPrev |
Vertex * | fNext |
Edge * | fFirstEdgeAbove |
Edge * | fLastEdgeAbove |
Edge * | fFirstEdgeBelow |
Edge * | fLastEdgeBelow |
Edge * | fLeftEnclosingEdge |
Edge * | fRightEnclosingEdge |
Vertex * | fPartner |
uint8_t | fAlpha |
bool | fSynthetic |
Vertices are used in three ways: first, the path contours are converted into a circularly-linked list of Vertices for each contour. After edge construction, the same Vertices are re-ordered by the merge sort according to the sweep_lt comparator (usually, increasing in Y) using the same fPrev/fNext pointers that were used for the contours, to avoid reallocation. Finally, MonotonePolys are built containing a circularly-linked list of Vertices. (Currently, those Vertices are newly-allocated for the MonotonePolys, since an individual Vertex from the path mesh may belong to multiple MonotonePolys, so the original Vertices cannot be re-used.
Definition at line 294 of file GrTriangulator.h.
|
inline |
Definition at line 295 of file GrTriangulator.h.
|
inline |
Definition at line 322 of file GrTriangulator.h.
uint8_t GrTriangulator::Vertex::fAlpha |
Definition at line 317 of file GrTriangulator.h.
Edge* GrTriangulator::Vertex::fFirstEdgeAbove |
Definition at line 310 of file GrTriangulator.h.
Edge* GrTriangulator::Vertex::fFirstEdgeBelow |
Definition at line 312 of file GrTriangulator.h.
Edge* GrTriangulator::Vertex::fLastEdgeAbove |
Definition at line 311 of file GrTriangulator.h.
Edge* GrTriangulator::Vertex::fLastEdgeBelow |
Definition at line 313 of file GrTriangulator.h.
Edge* GrTriangulator::Vertex::fLeftEnclosingEdge |
Definition at line 314 of file GrTriangulator.h.
Vertex* GrTriangulator::Vertex::fNext |
Definition at line 309 of file GrTriangulator.h.
Vertex* GrTriangulator::Vertex::fPartner |
Definition at line 316 of file GrTriangulator.h.
SkPoint GrTriangulator::Vertex::fPoint |
Definition at line 307 of file GrTriangulator.h.
Vertex* GrTriangulator::Vertex::fPrev |
Definition at line 308 of file GrTriangulator.h.
Edge* GrTriangulator::Vertex::fRightEnclosingEdge |
Definition at line 315 of file GrTriangulator.h.
bool GrTriangulator::Vertex::fSynthetic |
Definition at line 318 of file GrTriangulator.h.