Home | History | Annotate | Download | only in vega

Lines Matching refs:polygon

27 #include "polygon.h"
52 struct polygon
70 static void polygon_print(struct polygon *poly)
74 debug_printf("Polygon %p, size = %d\n", poly, poly->num_verts);
84 struct polygon * polygon_create(int size)
86 struct polygon *poly = (struct polygon*)malloc(sizeof(struct polygon));
97 struct polygon * polygon_create_from_data(float *data, int size)
99 struct polygon *poly = polygon_create(size);
109 void polygon_destroy(struct polygon *poly)
115 void polygon_resize(struct polygon *poly, int new_size)
127 int polygon_size(struct polygon *poly)
132 int polygon_vertex_count(struct polygon *poly)
137 float * polygon_data(struct polygon *poly)
142 void polygon_vertex_append(struct polygon *p,
160 void polygon_set_vertex(struct polygon *p, int idx,
176 void polygon_vertex(struct polygon *p, int idx,
191 void polygon_bounding_rect(struct polygon *p,
217 int polygon_contains_point(struct polygon *p,
223 void polygon_append_polygon(struct polygon *dst,
224 struct polygon *src)
234 VGboolean polygon_is_closed(struct polygon *p)
245 struct polygon *poly)
260 void polygon_fill(struct polygon *poly, struct vg_context *ctx)
337 struct polygon *poly = (((struct polygon**)polys->data)[i]);