FsPath
The FsPath structure represents a shape to be drawn.
Syntax
struct FsPath {
int first;
int count;
unsigned char closed;
int nbevel;
FsVertex* fill;
int nfill;
FsVertex* stroke;
int nstroke;
int winding;
int convex;
};Members
| Member | Description |
|---|---|
first | This stores the first element of the current subpath (in the point array contained in PathCache). NOTE This value is ignored by the game, but used by NanoVG to generate the path triangulation. |
count | The amount of points in the path. NOTE This value is ignored by the game, but used by NanoVG to generate the path triangulation. |
closed | Sets whether this path must connect the last point to the first one (true) or not (false). NOTE This value is ignored by the game, but used by NanoVG to generate the path triangulation. |
nbevel | The count of corners with bevel (used for fill/stroke expansion). NOTE This value is ignored by the game, but used by NanoVG to generate the path triangulation. |
fill | Defines the vertices that delimit the shape to be filled. |
nfill | Defines the number of vertices in the fill field. |
stroke | Defines the vertices that delimit the shape to be stroked. |
nstroke | Defines the number of vertices in the stroke field. |
winding | Defines the winding of the points, used by NanoVG to create the triangulation: 1 for CCW (counter-clock-wise, used for solid shapes) or 2 for CW (clock-wise, used for holes). NOTE This value is ignored by the game, but used by NanoVG to generate the path triangulation. |
convex | Defines the convexity of the shape: 0 for concave, any other value for convex. |
Remarks
N/A
