6 #define FNAME image_mask_10
7 #define NAME "Image Mask 10"
8 #define ICON "blend.png"
17 static Evas_Object *o_images[1];
18 static Evas_Object *o_mask;
21 static void _setup(void)
26 o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
28 efl_file_simple_load(o, build_path("e-logo-mask.png"), NULL);
29 efl_gfx_fill_set(o, EINA_RECT(0, 0, 720, 420));
30 efl_gfx_entity_size_set(o, EINA_SIZE2D(720, 420));
31 efl_gfx_entity_position_set(o, EINA_POSITION2D((win_w - 720) / 2, (win_h - 420) / 2));
32 efl_gfx_entity_visible_set(o, EINA_TRUE);
34 for (i = 0; i < 1; i++)
36 o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
38 efl_file_simple_load(o, build_path("texture.png"), NULL);
39 efl_gfx_fill_set(o, EINA_RECT(0, 0, win_w * 4, win_h * 4));
40 efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w * 4, win_h * 4));
41 evas_object_clip_set(o, o_mask);
42 efl_gfx_entity_visible_set(o, EINA_TRUE);
48 static void _cleanup(void)
51 for (i = 0; i < 1; i++) efl_del(o_images[i]);
55 /* loop - do things */
56 static void _loop(double t, int f)
59 static Evas_Map *m = NULL;
61 if (!m) m = evas_map_new(4);
62 for (i = 0; i < 1; i++)
66 evas_map_util_points_populate_from_geometry(m,
69 evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
71 evas_object_map_enable_set(o_images[i], 1);
72 evas_object_map_set(o_images[i], m);
77 /* prepend special key handlers if interactive (before STD) */
78 static void _key(const char *key)
94 /* template stuff - ignore */
99 _ui_menu_item_add(ICON, NAME, FNAME);
110 ui_func_set(_key, _loop, _setup);