From 3fabd604bf772a86fc1a18495390e0bb2d7d8774 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 9 Nov 2020 14:43:15 +0900 Subject: [PATCH] examples capi: removed printf() there is no point to print information. --- src/examples/Capi.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/examples/Capi.cpp b/src/examples/Capi.cpp index 809d367f..ef5c1149 100644 --- a/src/examples/Capi.cpp +++ b/src/examples/Capi.cpp @@ -125,34 +125,19 @@ void testCapi() uint32_t ptsCnt; tvg_shape_get_path_commands(shape, &cmds, &cmdCnt); - printf("---- First Shape Commands(%u) ----\n", cmdCnt); - for(uint32_t i = 0; i < cmdCnt; ++i) { - printf("%d\n", cmds[i]); - } tvg_shape_get_path_coords(shape, &pts, &ptsCnt); - printf("---- First Shape Points(%u) ----\n", ptsCnt); - for(uint32_t i = 0; i < ptsCnt; ++i) { - printf("(%.2lf, %.2lf)\n", pts[i].x, pts[i].y); - } float x1, y1, x2, y2, radius; tvg_linear_gradient_get(grad, &x1, &y1, &x2, &y2); - printf("Gradient linear get: %f/%f/%f/%f\n", x1, y1, x2, y2); tvg_radial_gradient_get(grad6, &x1, &y1, &radius); - printf("Gradient radial get: %f/%f, %f\n", x1, y1, radius); uint32_t cnt; const Tvg_Color_Stop* color_stops_get; tvg_gradient_get_color_stops(grad5, &color_stops_get, &cnt); - printf("Gradient stops get:\n"); - for(uint32_t i = 0; i < cnt; i++) { - printf("\t[%d] offset: %f, rgb: %d/%d/%d, alpha: %d\n", i, color_stops_get[i].offset, color_stops_get[i].r, color_stops_get[i].g, color_stops_get[i].b, color_stops_get[i].a); - } Tvg_Stroke_Fill spread; tvg_gradient_get_spread(grad, &spread); - printf("Gradient spread: %d\n", (int)spread); //Origin paint for duplicated Tvg_Paint* org = tvg_shape_new();