Home | History | Annotate | Download | only in vega

Lines Matching refs:coords

44                                     const VGfloat *coords,
50 vg_float_to_datatype(path_datatype(p), common_data, coords, num_coords);
59 VGfloat coords[4];
70 coords[0] = x0;
71 coords[1] = y0;
72 coords[2] = x1;
73 coords[3] = y1;
75 vgu_append_float_coords(path, cmds, 2, coords, 4);
86 VGfloat *coords;
104 coords = malloc(sizeof(VGfloat) * count * 2);
107 coords[0] = points[0];
108 coords[1] = points[1];
111 coords[2*i + 0] = points[2*i + 0];
112 coords[2*i + 1] = points[2*i + 1];
120 vgu_append_float_coords(path, cmds, i, coords, 2*i);
123 free(coords);
138 VGfloat coords[5];
152 coords[0] = x;
153 coords[1] = y;
154 coords[2] = width;
155 coords[3] = height;
156 coords[4] = -width;
158 vgu_append_float_coords(path, cmds, 5, coords, 5);
232 VGfloat coords[12];
246 coords[0] = cx + width/2; coords[1] = cy;
248 coords[2] = width/2; coords[3] = height/2; coords[4] = 0;
249 coords[5] = -width; coords[6] = 0;
251 coords[7] = width/2; coords[8] = height/2; coords[9] = 0;
252 coords[10] = width; coords[11] = 0;
254 vgu_append_float_coords(path, cmds, 4, coords, 11);
267 VGfloat coords[40];
289 coords[0] = x+cos(DEGREES_TO_RADIANS(startAngle))*width/2;
290 coords[1] = y+sin(DEGREES_TO_RADIANS(startAngle))*height/2;
292 debug_printf("start [%f, %f]\n", coords[0], coords[1]);
299 coords[i] = width/2; coords[i+1] = height/2; coords[i+2] = 0;
300 coords[i+3] = x + cos(DEGREES_TO_RADIANS(angle))*width/2;
301 coords[i+4] = y + sin(DEGREES_TO_RADIANS(angle))*height/2;
303 debug_printf("1 [%f, %f]\n", coords[i+3],
304 coords[i+4]);
310 coords[i] = width/2; coords[i+1] = height/2; coords[i+2] = 0;
311 coords[i+3] = x+cos(DEGREES_TO_RADIANS(last))*width/2;
312 coords[i+4] = y+sin(DEGREES_TO_RADIANS(last))*height/2;
314 debug_printf("2 [%f, %f]\n", coords[i+3],
315 coords[i+4]);
322 coords[i] = width/2; coords[i+1] = height/2; coords[i+2] = 0;
323 coords[i+3] = x + cos(DEGREES_TO_RADIANS(angle)) * width/2;
324 coords[i+4] = y + sin(DEGREES_TO_RADIANS(angle)) * height/2;
326 debug_printf("3 [%f, %f]\n", coords[i+3],
327 coords[i+4]);
333 coords[i] = width/2; coords[i+1] = height/2; coords[i+2] = 0;
334 coords[i+3] = x + cos(DEGREES_TO_RADIANS(last)) * width/2;
335 coords[i+4] = y + sin(DEGREES_TO_RADIANS(last)) * height/2;
337 debug_printf("4 [%f, %f]\n", coords[i+3],
338 coords[i+4]);
345 coords[i] = x; coords[i + 1] = y;
355 vgu_append_float_coords(path, cmds, c, coords, i);