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