Lines Matching refs:VGfloat
47 VGfloat color[4];
55 VGfloat coords[4];
59 VGfloat vals[5];
65 VGfloat *ramp_stops;
95 static INLINE VGuint float4_to_argb(const VGfloat *clr)
103 static INLINE void create_gradient_data(const VGfloat *ramp_stops,
110 VGfloat fpos = 0, incr = 1.f / size;
122 VGfloat delta = 1.f/(ramp_stops[rnext] - ramp_stops[rcur]);
198 const VGfloat default_color[] = {0.0f, 0.0f, 0.0f, 1.0f};
199 const VGfloat def_ling[] = {0.0f, 0.0f, 1.0f, 0.0f};
200 const VGfloat def_radg[] = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
206 4 * sizeof(VGfloat));
209 4 * sizeof(VGfloat));
211 5 * sizeof(VGfloat));
241 const VGfloat *color)
256 VGfloat *map = (VGfloat*)buffer;
257 memcpy(buffer, paint->solid.color, 4 * sizeof(VGfloat));
268 VGfloat *map = (VGfloat*)buffer;
269 VGfloat dd;
304 const VGfloat *center = &paint->gradient.radial.vals[0];
305 const VGfloat *focal = &paint->gradient.radial.vals[2];
306 VGfloat rr = paint->gradient.radial.vals[4];
307 VGfloat *map = (VGfloat*)buffer;
308 VGfloat dd, new_focal[2];
318 VGfloat scale;
360 VGfloat *map = (VGfloat *)buffer;
361 memcpy(map, paint->solid.color, 4 * sizeof(VGfloat));
383 void paint_set_ramp_stops(struct vg_paint *paint, const VGfloat *stops,
386 const VGfloat default_stops[] = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f,
390 VGfloat last_coord;
395 paint->gradient.ramp_stops = malloc(sizeof(VGfloat)*num);
396 memcpy(paint->gradient.ramp_stops, stops, sizeof(VGfloat)*num);
409 VGfloat coord = stops[idx];
450 const VGfloat *coords)
452 memcpy(paint->gradient.linear.coords, coords, sizeof(VGfloat) * 4);
478 const VGfloat *values)
480 memcpy(paint->gradient.radial.vals, values, sizeof(VGfloat) * 5);
522 VGfloat *color)
530 void paint_ramp_stops(struct vg_paint *paint, VGfloat *stops,
533 memcpy(stops, paint->gradient.ramp_stops, sizeof(VGfloat)*num);
537 VGfloat *coords)
539 VGfloat)*4);
543 VGfloat *coords)
545 memcpy(coords, paint->gradient.radial.vals, sizeof(VGfloat)*5);
657 sizeof(VGfloat) * 4);
682 VGfloat *vals;
711 return 8 * sizeof(VGfloat);/*4 color + 4 constants (0.f,1.f,2.f,4.f)*/
714 return 20 * sizeof(VGfloat);
717 return 20 * sizeof(VGfloat);
720 return 20 * sizeof(VGfloat);