convert expedite to use new evas_map util.

SVN revision: 43614
expedite-1.1
Gustavo Sverzut Barbieri 13 years ago
parent e5ef588c0e
commit ee723772fe
  1. 27
      src/bin/image_map_color_alpha_nearest_rotate.c
  2. 27
      src/bin/image_map_color_alpha_nearest_solid_rotate.c
  3. 27
      src/bin/image_map_color_alpha_rotate.c
  4. 26
      src/bin/image_map_color_alpha_solid_rotate.c
  5. 27
      src/bin/image_map_color_nearest_rotate.c
  6. 27
      src/bin/image_map_color_nearest_solid_rotate.c
  7. 27
      src/bin/image_map_color_rotate.c
  8. 27
      src/bin/image_map_color_solid_rotate.c
  9. 18
      src/bin/image_map_nearest_rotate.c
  10. 18
      src/bin/image_map_nearest_solid_rotate.c
  11. 18
      src/bin/image_map_rotate.c
  12. 18
      src/bin/image_map_solid_rotate.c

@ -58,25 +58,16 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_color_set (m, 1, 255, 0, 0, 255);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_color_set (m, 2, 0, 0, 255, 255);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_point_color_set (m, 3, 0, 0, 0, 0);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -58,25 +58,16 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_color_set (m, 1, 255, 0, 0, 255);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_color_set (m, 2, 0, 0, 255, 255);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_point_color_set (m, 3, 0, 0, 0, 0);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -56,25 +56,16 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_color_set (m, 1, 255, 0, 0, 255);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_color_set (m, 2, 0, 0, 255, 255);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_point_color_set (m, 3, 0, 0, 0, 0);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -56,25 +56,15 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_color_set (m, 1, 255, 0, 0, 255);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_color_set (m, 2, 0, 0, 255, 255);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_point_color_set (m, 3, 0, 0, 0, 0);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -58,25 +58,16 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_color_set (m, 1, 255, 0, 0, 255);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_color_set (m, 2, 0, 0, 255, 255);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_point_color_set (m, 3, 0, 255, 0, 255);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
evas_map_point_color_set(m, 3, 0, 255, 0, 255);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -58,25 +58,16 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_color_set (m, 1, 255, 0, 0, 255);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_color_set (m, 2, 0, 0, 255, 255);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_point_color_set (m, 3, 0, 255, 0, 255);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
evas_map_point_color_set(m, 3, 0, 255, 0, 255);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -56,25 +56,16 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_color_set (m, 1, 255, 0, 0, 255);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_color_set (m, 2, 0, 0, 255, 255);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_point_color_set (m, 3, 0, 255, 0, 255);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
evas_map_point_color_set(m, 3, 0, 255, 0, 255);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -56,25 +56,16 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_color_set (m, 1, 255, 0, 0, 255);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_color_set (m, 2, 0, 0, 255, 255);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_point_color_set (m, 3, 0, 255, 0, 255);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
evas_map_point_color_set(m, 3, 0, 255, 0, 255);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -58,21 +58,11 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -58,21 +58,11 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -56,21 +56,11 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

@ -56,21 +56,11 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
evas_map_point_coord_set (m, 0, x, y, 0);
evas_map_point_image_uv_set(m, 0, 0, 0);
evas_map_point_coord_set (m, 1, x + w, y, 0);
evas_map_point_image_uv_set(m, 1, w, 0);
evas_map_point_coord_set (m, 2, x + w, y + h, 0);
evas_map_point_image_uv_set(m, 2, w, h);
evas_map_point_coord_set (m, 3, x, y + h, 0);
evas_map_point_image_uv_set(m, 3, 0, h);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}

Loading…
Cancel
Save