From fbbfe0ea8037a71cc36449cbe6bbfc490ef485b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Fri, 11 May 2018 05:11:44 +0200 Subject: [PATCH] better antigrain curves params --- src/vkvg_context_internal.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vkvg_context_internal.c b/src/vkvg_context_internal.c index f415531..262ac76 100644 --- a/src/vkvg_context_internal.c +++ b/src/vkvg_context_internal.c @@ -177,7 +177,7 @@ void _record_draw_cmd (VkvgContext ctx){ //DEBUG /*vkCmdBindPipeline(ctx->cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, ctx->pSurf->dev->pipelineWired); vkCmdDrawIndexed(ctx->cmd, ctx->indCount - ctx->curIndStart, 1, ctx->curIndStart, 0, 1); - vkCmdBindPipeline(ctx->cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, ctx->pSurf->dev->pipeline);*/ + vkCmdBindPipeline(ctx->cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, ctx->pSurf->dev->pipe_OVER);*/ ////////// ctx->curIndStart = ctx->indCount; @@ -578,12 +578,12 @@ void _free_ctx_save (vkvg_context_save_t* sav){ #define m_approximation_scale 1.0 -#define m_angle_tolerance 0.05 -#define m_distance_tolerance 0.1 -#define m_cusp_limit 0.25 -#define curve_recursion_limit 16 -#define curve_collinearity_epsilon 0.001 -#define curve_angle_tolerance_epsilon 0.1 +#define m_angle_tolerance 0.01 +#define m_distance_tolerance 1.0 +#define m_cusp_limit 0.01 +#define curve_recursion_limit 10 +#define curve_collinearity_epsilon 1.7 +#define curve_angle_tolerance_epsilon 0.001 void _recursive_bezier (VkvgContext ctx, float x1, float y1, float x2, float y2, -- 2.47.3