|
|
@@ -1773,6 +1773,17 @@ void nvgBezierTo(struct NVGcontext* ctx, float c1x, float c1y, float c2x, float |
|
|
|
nvg__appendCommands(ctx, vals, NVG_COUNTOF(vals)); |
|
|
|
} |
|
|
|
|
|
|
|
void nvgQuadTo(struct NVGcontext* ctx, float cx, float cy, float x, float y) |
|
|
|
{ |
|
|
|
float x0 = ctx->commandx; |
|
|
|
float y0 = ctx->commandy; |
|
|
|
float vals[] = { NVG_BEZIERTO, |
|
|
|
x0 + 2.0f/3.0f*(cx - x0), y0 + 2.0f/3.0f*(cy - y0), |
|
|
|
x + 2.0f/3.0f*(cx - x), y + 2.0f/3.0f*(cy - y), |
|
|
|
x, y }; |
|
|
|
nvg__appendCommands(ctx, vals, NVG_COUNTOF(vals)); |
|
|
|
} |
|
|
|
|
|
|
|
void nvgArcTo(struct NVGcontext* ctx, float x1, float y1, float x2, float y2, float radius) |
|
|
|
{ |
|
|
|
float x0 = ctx->commandx; |
|
|
|