Lines Matching refs:points
4510 struct nk_vec2i points[1];
4517 struct nk_vec2i points[1];
4525 struct nk_vec2i points[1];
4578 NK_API void nk_stroke_polyline(struct nk_command_buffer*, float *points, int point_count, float line_thickness, struct nk_color col);
4790 NK_API void nk_draw_list_fill_poly_convex(struct nk_draw_list*, const struct nk_vec2 *points, const unsigned int count, struct nk_color, enum nk_anti_aliasing);
9060 nk_stroke_polygon(struct nk_command_buffer *b, float *points, int point_count,
9076 cmd->points[i].x = (short)points[i*2];
9077 cmd->points[i].y = (short)points[i*2+1];
9081 nk_fill_polygon(struct nk_command_buffer *b, float *points, int point_count,
9097 cmd->points[i].x = (short)points[i*2+0];
9098 cmd->points[i].y = (short)points[i*2+1];
9102 nk_stroke_polyline(struct nk_command_buffer *b, float *points, int point_count,
9118 cmd->points[i].x = (short)points[i*2];
9119 cmd->points[i].y = (short)points[i*2+1];
9314 struct nk_vec2 *points;
9317 points = (struct nk_vec2*)
9321 if (!points) return 0;
9324 list->path_offset = (unsigned int)((nk_byte*)points - (nk_byte*)memory);
9327 return points;
9624 nk_draw_list_stroke_poly_line(struct nk_draw_list *list, const struct nk_vec2 *points,
9670 /* temporary allocate normals + points */
9684 struct nk_vec2 diff = nk_vec2_sub(points[i2], points[i1]);
9705 temp[0] = nk_vec2_add(points[0], nk_vec2_muls(normals[0], AA_SIZE));
9706 temp[1] = nk_vec2_sub(points[0], nk_vec2_muls(normals[0], AA_SIZE));
9708 temp[(points_count-1) * 2 + 0] = nk_vec2_add(points[points_count-1], d);
9709 temp[(points_count-1) * 2 + 1] = nk_vec2_sub(points[points_count-1], d);
9730 temp[i2*2+0] = nk_vec2_add(points[i2], dm);
9731 temp[i2*2+1] = nk_vec2_sub(points[i2], dm);
9746 vtx = nk_draw_vertex(vtx, &list->config, points[i], uv, col);
9757 temp[0] = nk_vec2_add(points[0], d1);
9758 temp[1] = nk_vec2_add(points[0], d2);
9759 temp[2] = nk_vec2_sub(points[0], d2);
9760 temp[3] = nk_vec2_sub(points[0], d1);
9765 temp[(points_count-1)*4+0] = nk_vec2_add(points[points_count-1], d1);
9766 temp[(points_count-1)*4+1] = nk_vec2_add(points[points_count-1], d2);
9767 temp[(points_count-1)*4+2] = nk_vec2_sub(points[points_count-1], d2);
9768 temp[(points_count-1)*4+3] = nk_vec2_sub(points[points_count-1], d1);
9789 temp[i2*4+0] = nk_vec2_add(points[i2], dm_out);
9790 temp[i2*4+1] = nk_vec2_add(points[i2], dm_in);
9791 temp[i2*4+2] = nk_vec2_sub(points[i2], dm_in);
9792 temp[i2*4+3] = nk_vec2_sub(points[i2], dm_out);
9817 /* free temporary normals + points */
9833 const struct nk_vec2 p1 = points[i1];
9834 const struct nk_vec2 p2 = points[i2];
9865 const struct nk_vec2 *points, const unsigned int points_count,
9924 struct nk_vec2 p0 = points[i0];
9925 struct nk_vec2 p1 = points[i1];
9954 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2_sub(points[i1], dm), uv, col);
9955 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2_add(points[i1], dm), uv, col_trans);
9966 /* free temporary normals + points */
9978 vtx = nk_draw_vertex(vtx, &list->config, points[i], list->config.null.uv, col);
9999 struct nk_vec2 *points = 0;
10010 points = nk_draw_list_alloc_path(list, 1);
10011 if (!points) return;
10012 points[0] = pos;
10128 struct nk_vec2 *points;
10131 points = (struct nk_vec2*)nk_buffer_memory(list->buffer);
10132 nk_draw_list_fill_poly_convex(list, points, list->path_count, color, list->config.shape_AA);
10139 struct nk_vec2 *points;
10142 points = (struct nk_vec2*)nk_buffer_memory(list->buffer);
10143 nk_draw_list_stroke_poly_line(list, points, list->path_count, color,
10486 struct nk_vec2 pnt = nk_vec2((float)p->points[i].x, (float)p->points[i].y);
10495 struct nk_vec2 pnt = nk_vec2((float)p->points[i].x, (float)p->points[i].y);
10504 struct nk_vec2 pnt = nk_vec2((float)p->points[i].x, (float)p->points[i].y);
11334 const nk_byte *points;
11337 points = data + g + 10 + numberOfContours * 2 + 2 + ins;
11356 flags = *points++;
11358 flagcount = *points++;
11368 nk_short dx = *points++;
11372 x = x + (nk_short) (points[0]*256 + points[1]);
11373 points += 2;
11384 nk_short dy = *points++;
11388 y = y + (nk_short) (points[0]*256 + points[1]);
11389 points += 2;
11436 if (was_off) /* two off-curve control points in a row means interpolate an on-curve midpoint */
11708 /* compute intersection points with top & bottom */
12099 nk_tt__add_point(struct nk_tt__point *points, int n, float x, float y)
12101 if (!points) return; /* during first pass, it's unallocated */
12102 points[n].x = x;
12103 points[n].y = y;
12106 nk_tt__tesselate_curve(struct nk_tt__point *points, int *num_points,
12123 nk_tt__tesselate_curve(points, num_points, x0,y0,
12125 nk_tt__tesselate_curve(points, num_points, mx,my,
12128 nk_tt__add_point(points, *num_points,x2,y2);
12139 struct nk_tt__point *points=0;
12161 /* make two passes through the points so we don't need to realloc */
12166 points = (struct nk_tt__point *)
12167 alloc->alloc(alloc->userdata,0, (nk_size)num_points * sizeof(points[0]));
12168 if (points == 0) goto error;
12184 nk_tt__add_point(points, num_points++, x,y);
12188 nk_tt__add_point(points, num_points++, x, y);
12191 nk_tt__tesselate_curve(points, &num_points, x,y,
12202 return points;
12205 alloc->free(alloc->userdata, points);
19732 struct nk_vec2 points[3];
19736 nk_triangle_from_direction(points, content, 0, 0, heading);
19737 nk_fill_triangle(out, points[0].x, points[0].y, points[1].x, points[1].y,
19738 points[2].x, points[2].y, foreground);