Lines Matching defs:object
10 struct object {
20 struct object objects[32];
31 struct object object;
33 object.path = vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F,
35 vgAppendPathData(object.path, num_segments, segments, coords);
37 object.fill = vgCreatePaint();
38 vgSetColor(object.fill, color);
39 memcpy(object.matrix, identity_matrix, 9 * sizeof(VGfloat));
40 object.draw_mode = VG_FILL_PATH;
42 cartman.objects[cartman.num_objects] = object;
51 struct object object;
53 object.path = vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F,
55 vgAppendPathData(object.path, num_segments, segments, coords);
57 object.stroke = vgCreatePaint();
58 vgSetColor(object.stroke, color);
59 memcpy(object.matrix, identity_matrix, 9 * sizeof(VGfloat));
60 object.draw_mode = VG_STROKE_PATH;
61 object.stroke_width = width;
63 cartman.objects[cartman.num_objects] = object;
73 struct object object;
75 object.path = vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F,
77 vgAppendPathData(object.path, num_segments, segments, coords);
79 object.fill = vgCreatePaint();
80 vgSetColor(object.fill, color);
81 memcpy(object.matrix, matrix, 9 * sizeof(VGfloat));
82 object.draw_mode = VG_FILL_PATH;
84 cartman.objects[cartman.num_objects] = object;
95 struct object object;
97 object.path = vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F,
99 vgAppendPathData(object.path, num_segments, segments, coords);
100 memcpy(object.matrix, matrix, 9 * sizeof(VGfloat));
102 object.fill = vgCreatePaint();
103 vgSetColor(object.fill, fill_color);
104 object.draw_mode = VG_FILL_PATH | VG_STROKE_PATH;
106 object.stroke = vgCreatePaint();
107 vgSetColor(object.stroke, stroke_color);
108 object.stroke_width = stroke_width;
110 cartman.objects[cartman.num_objects] = object;
490 struct object object = cartman.objects[i];
491 if ((object.draw_mode & VG_STROKE_PATH)) {
492 vgSetf(VG_STROKE_LINE_WIDTH, object.stroke_width);
493 vgSetPaint(object.stroke, VG_STROKE_PATH);
495 if ((object.draw_mode & VG_FILL_PATH))
496 vgSetPaint(object.fill, VG_FILL_PATH);
497 vgMultMatrix(object.matrix);
498 vgDrawPath(object.path, object.draw_mode);