Adjust according to recent Eo4 changes.

This commit is contained in:
Tom Hacohen 2016-03-03 14:03:49 +00:00
parent 1c72554acc
commit 088df1425e
116 changed files with 1217 additions and 1416 deletions

View File

@ -9,9 +9,9 @@ _setup(void)
Evas_Textblock_Style *st;
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
eo_do(o, efl_gfx_position_set(10, 40),
efl_gfx_size_set(win_w - 20, win_h - 50),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, 10, 40);
efl_gfx_size_set(o, win_w - 20, win_h - 50);
efl_gfx_visible_set(o, EINA_TRUE);
st = evas_textblock_style_new();
evas_textblock_style_set
(st,
@ -21,10 +21,10 @@ _setup(void)
"p='+ font=Vera font_size=10 align=left'"
"/p='- \n \n'"
);
eo_do(o, evas_obj_textblock_style_set(st),
evas_obj_textblock_clear(),
evas_obj_textblock_text_markup_set
("<center>"
evas_obj_textblock_style_set(o, st);
evas_obj_textblock_clear(o);
evas_obj_textblock_text_markup_set
(o, "<center>"
"Enlightenment used to be a window manager project, but "
"since has changed a lot to become a miniature desktop and mobile "
"device environment all of its own. It is now made up of many "
@ -40,8 +40,7 @@ _setup(void)
"DirectFB and other targets to boot. It handles high level graphic "
"layout descriptions that applications set up, dealing with the hard "
"work of doing the drawing for them."
"</center>"
));
"</center>");
evas_textblock_style_free(st);
o_text = o;
ui_fps(0.0);

View File

@ -54,7 +54,7 @@ static void _loop(double t, int f)
char buf[256];
char *str = "padding_set({ %d });blur({%d,color=black });";
sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1));
eo_do(text, efl_gfx_filter_program_set(buf, "test"));
efl_gfx_filter_program_set(text, buf, "test");
FPS_STD(NAME);
}

View File

@ -56,7 +56,7 @@ static void _loop(double t, int f)
char buf[256];
char *str = "a = buffer({ 'rgba' }); padding_set({ %d }); blend({dst=a, color=darkblue});blur({%d,src=a});";
sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1));
eo_do(text, efl_gfx_filter_program_set(buf, "test"));
efl_gfx_filter_program_set(text, buf, "test");
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("bar.png"), NULL),
evas_obj_image_border_set(6, 6, 6, 6),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("bar.png"), NULL);
evas_obj_image_border_set(o, 6, 6, 6, 6);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,11 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("pan.png"), NULL),
efl_gfx_color_set(64, 64, 64, 255),
evas_obj_image_border_set(3, 3, 3, 3),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("pan.png"), NULL);
efl_gfx_color_set(o, 64, 64, 64, 255);
evas_obj_image_border_set(o, 3, 3, 3, 3);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -56,10 +55,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -27,15 +27,13 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
a = 256 - (1 << ((rnd() % 8) + 1));
if (a < 128) a = 128;
eo_do(o,
efl_gfx_color_set(a, a, a, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, a, a, a, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -60,7 +58,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -27,12 +27,11 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
a = rnd()&0xff;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_color_set(a, a, a, a),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_color_set(o, a, a, a, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -57,7 +56,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -30,12 +30,11 @@ static void _setup(void)
n = rnd() % 100;
w = 3 + ((n * (60 - 3)) / 100);
h = 4 + ((n * (80 - 4)) / 100);
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(1),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 1);
efl_gfx_size_set(o, w, h);
efl_gfx_fill_set(o, 0, 0, w, h);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -54,12 +53,12 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h;
for (i = 0; i < MANYNUM; i++)
{
eo_do(o_images[i], efl_gfx_size_get(&w, &h));
efl_gfx_size_get(o_images[i], &w, &h);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 2);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -28,7 +28,7 @@ static void _setup(void)
o_images[i] = o;
if (i < (OBNUM / 2))
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -36,14 +36,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -70,7 +68,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i < (OBNUM / 2))
{
eo_do(o, efl_file_set(PACKAGE_DATA_DIR"/data/logo.png", NULL));
efl_file_set(o, PACKAGE_DATA_DIR"/data/logo.png", NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(PACKAGE_DATA_DIR"/data/image.png", NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, PACKAGE_DATA_DIR"/data/image.png", NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i < (OBNUM / 2))
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i < (OBNUM / 2))
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -28,7 +28,7 @@ static void _setup(void)
o_images[i] = o;
if (i & 0x1)
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -36,14 +36,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -70,7 +68,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i & 0x1)
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i & 0x1)
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i & 0x1)
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -28,7 +28,7 @@ static void _setup(void)
o_images[i] = o;
if (i > (OBNUM / 2))
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -36,14 +36,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -70,7 +68,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i > (OBNUM / 2))
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i > (OBNUM / 2))
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -31,7 +31,7 @@ static void _setup(void)
o_images[i] = o;
if (i > (OBNUM / 2))
{
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
efl_file_set(o, build_path("logo.png"), NULL);
}
else
{
@ -39,14 +39,12 @@ static void _setup(void)
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_position_set(x, y));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_position_set(o, x, y);
}
eo_do(o,
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -73,7 +71,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
}
FPS_STD(NAME);

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(1),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 1);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(1),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 1);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_image_smooth_scale_set(1),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_image_smooth_scale_set(o, 1);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_image_smooth_scale_set(1),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_image_smooth_scale_set(o, 1);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,10 +25,9 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("frame.png"), NULL),
evas_obj_image_border_set(8, 8, 8, 8),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("frame.png"), NULL);
evas_obj_image_border_set(o, 8, 8, 8, 8);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -55,10 +54,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -27,15 +27,13 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
a = 256 - (1 << ((rnd() % 8) + 1));
if (a < 128) a = 128;
eo_do(o,
efl_gfx_color_set(a, a, a, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, a, a, a, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -60,7 +58,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -27,14 +27,12 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
a = rnd()&0xff;
eo_do(o,
efl_gfx_color_set(a, a, a, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, a, a, a, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -59,7 +57,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -25,11 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("bar.png"), NULL),
evas_obj_image_border_set(6, 6, 6, 6),
evas_obj_image_border_center_fill_set(EVAS_BORDER_FILL_SOLID),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("bar.png"), NULL);
evas_obj_image_border_set(o, 6, 6, 6, 6);
evas_obj_image_border_center_fill_set(o, EVAS_BORDER_FILL_SOLID);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -56,10 +55,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,13 +25,12 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
evas_obj_image_border_set(43, 48, 48, 83),
evas_obj_image_border_center_fill_set(EVAS_BORDER_FILL_SOLID),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_image_border_set(o, 43, 48, 48, 83);
evas_obj_image_border_center_fill_set(o, EVAS_BORDER_FILL_SOLID);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -56,7 +55,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -25,11 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -54,7 +53,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -25,11 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -54,7 +53,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -24,19 +24,17 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[0] = o;
eo_do(o,
efl_file_set(build_path("im1.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("im1.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[1] = o;
eo_do(o,
efl_file_set(build_path("im2.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("im2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_visible_set(o, EINA_TRUE);
done = 0;
}
@ -55,7 +53,7 @@ static void _loop(double t, int f)
a = f & 0x1f;
a = ((a << 3) | (a >> 2)) & 0xff;
eo_do(o_images[1], efl_gfx_color_set(a, a, a, a));
efl_gfx_color_set(o_images[1], a, a, a, a);
FPS_STD(NAME);
}

View File

@ -26,14 +26,13 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
efl_gfx_view_size_set(640, 480),
evas_obj_image_alpha_set(0),
efl_gfx_fill_set(0, 0, 640, 480),
efl_gfx_size_set(640, 480),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888);
efl_gfx_view_size_set(o, 640, 480);
evas_obj_image_alpha_set(o, 0);
efl_gfx_fill_set(o, 0, 0, 640, 480);
efl_gfx_size_set(o, 640, 480);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -58,12 +57,11 @@ static void _loop(double t, int f)
h = 480;
x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h),
data = evas_obj_image_data_get(1),
st = evas_obj_image_stride_get());
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
data = evas_obj_image_data_get(o_images[i], 1);
st = evas_obj_image_stride_get(o_images[i]);
st = st >> 2;
p = data;
for (y = 0; y < h; y++)
@ -75,9 +73,8 @@ static void _loop(double t, int f)
}
p += (st - w);
}
eo_do(o_images[i],
evas_obj_image_data_set(data),
evas_obj_image_data_update_add( 0, 0, w, h));
evas_obj_image_data_set(o_images[i], data);
evas_obj_image_data_update_add(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -26,14 +26,13 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
efl_gfx_view_size_set(640, 480),
evas_obj_image_alpha_set(1),
efl_gfx_fill_set(0, 0, 640, 480),
efl_gfx_size_set(640, 480),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888);
efl_gfx_view_size_set(o, 640, 480);
evas_obj_image_alpha_set(o, 1);
efl_gfx_fill_set(o, 0, 0, 640, 480);
efl_gfx_size_set(o, 640, 480);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -58,12 +57,11 @@ static void _loop(double t, int f)
h = 480;
x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h),
data = evas_obj_image_data_get(1),
st = evas_obj_image_stride_get());
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
data = evas_obj_image_data_get(o_images[i], 1);
st = evas_obj_image_stride_get(o_images[i]);
st = st >> 2;
p = data;
for (y = 0; y < h; y++)
@ -86,9 +84,8 @@ static void _loop(double t, int f)
}
p += (st - w);
}
eo_do(o_images[i],
evas_obj_image_data_set(data),
evas_obj_image_data_update_add( 0, 0, w, h));
evas_obj_image_data_set(o_images[i], data);
evas_obj_image_data_update_add(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -29,14 +29,13 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
efl_gfx_view_size_set(640, 480),
evas_obj_image_alpha_set(0),
efl_gfx_fill_set(0, 0, 640, 480),
efl_gfx_size_set(640, 480),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL);
efl_gfx_view_size_set(o, 640, 480);
evas_obj_image_alpha_set(o, 0);
efl_gfx_fill_set(o, 0, 0, 640, 480);
efl_gfx_size_set(o, 640, 480);
efl_gfx_visible_set(o, EINA_TRUE);
yp = malloc(640 * 480);
up = malloc(320 * 240);
vp = malloc(320 * 240);
@ -65,7 +64,7 @@ static void _setup(void)
*lp = vp + (y * 320);
lp++;
}
eo_do(o_images[i], evas_obj_image_data_set(data));
evas_obj_image_data_set(o_images[i], data);
}
done = 0;
}
@ -91,11 +90,10 @@ static void _loop(double t, int f)
h = 480;
x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h),
evas_obj_image_data_update_add( 0, 0, 640, 480));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
evas_obj_image_data_update_add(o_images[i], 0, 0, 640, 480);
}
FPS_STD(NAME);
}

View File

@ -29,15 +29,14 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
efl_gfx_view_size_set(640, 480),
evas_obj_image_alpha_set(0),
efl_gfx_fill_set(0, 0, 640, 480),
efl_gfx_size_set(640, 480),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL);
efl_gfx_view_size_set(o, 640, 480);
evas_obj_image_alpha_set(o, 0);
efl_gfx_fill_set(o, 0, 0, 640, 480);
efl_gfx_size_set(o, 640, 480);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
yp = malloc(640 * 480);
up = malloc(320 * 240);
vp = malloc(320 * 240);
@ -66,7 +65,7 @@ static void _setup(void)
*lp = vp + (y * 320);
lp++;
}
eo_do(o_images[i], evas_obj_image_data_set(data));
evas_obj_image_data_set(o_images[i], data);
}
done = 0;
}
@ -100,9 +99,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -29,14 +29,13 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
efl_gfx_view_size_set(640, 480),
evas_obj_image_alpha_set(0),
efl_gfx_fill_set(0, 0, 640, 480),
efl_gfx_size_set(640, 480),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL);
efl_gfx_view_size_set(o, 640, 480);
evas_obj_image_alpha_set(o, 0);
efl_gfx_fill_set(o, 0, 0, 640, 480);
efl_gfx_size_set(o, 640, 480);
efl_gfx_visible_set(o, EINA_TRUE);
yp = malloc(640 * 480);
up = malloc(320 * 240);
vp = malloc(320 * 240);
@ -65,7 +64,7 @@ static void _setup(void)
*lp = vp + (y * 320);
lp++;
}
eo_do(o_images[i], evas_obj_image_data_set(data));
evas_obj_image_data_set(o_images[i], data);
}
done = 0;
}
@ -98,9 +97,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -29,14 +29,13 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
efl_gfx_view_size_set(320, 480),
evas_obj_image_alpha_set(0),
efl_gfx_fill_set(0, 0, 640, 480),
efl_gfx_size_set(640, 480),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL);
efl_gfx_view_size_set(o, 320, 480);
evas_obj_image_alpha_set(o, 0);
efl_gfx_fill_set(o, 0, 0, 640, 480);
efl_gfx_size_set(o, 640, 480);
efl_gfx_visible_set(o, EINA_TRUE);
yp = malloc(640 * 480);
up = malloc(320 * 240);
vp = malloc(320 * 240);
@ -67,9 +66,8 @@ static void _setup(void)
*lp = vp + (y * 320);
lp++;
}
eo_do(o_images[i],
evas_obj_image_data_set(data),
evas_obj_image_data_update_add( 0, 0, 320, 480));
evas_obj_image_data_set(o_images[i], data);
evas_obj_image_data_update_add(o_images[i], 0, 0, 320, 480);
}
}
done = 0;
@ -98,10 +96,9 @@ static void _loop(double t, int f)
h = 480;
x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
w = 320 - 16 + f;
if (w < 1) w = 1;
@ -109,7 +106,7 @@ static void _loop(double t, int f)
w &= ~0x1;
eo_do(o_images[i], efl_gfx_view_size_set(w, 480));
efl_gfx_view_size_set(o_images[i], w, 480);
data = evas_object_image_data_get(o_images[i], 1);
if (data)
{
@ -129,9 +126,8 @@ static void _loop(double t, int f)
*lp = vp + (y * 320);
lp++;
}
eo_do(o_images[i],
evas_obj_image_data_set(data),
evas_obj_image_data_update_add( 0, 0, w, 480));
evas_obj_image_data_set(o_images[i], data);
evas_obj_image_data_update_add(o_images[i], 0, 0, w, 480);
}
}
FPS_STD(NAME);

View File

@ -57,12 +57,11 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
o = eo_add(EVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
eo_do(o,
efl_file_set(build_path(buf), NULL),
efl_gfx_fill_set(0, 0, 256, 256),
efl_gfx_size_set(256, 256),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(buf), NULL);
efl_gfx_fill_set(o, 0, 0, 256, 256);
efl_gfx_size_set(o, 256, 256);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
POINT(0, 0, -w, -h, -d, 0, 0);
POINT(0, 1, w, -h, -d, 256, 0);
@ -131,14 +130,13 @@ _cube_pos(Cube *c,
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
if (evas_map_util_clockwise_get(m))
{
eo_do(c->side[i].o,
evas_obj_map_enable_set(1),
evas_obj_map_set(m),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
}
else
{
eo_do(c->side[i].o, efl_gfx_visible_set(EINA_FALSE));
efl_gfx_visible_set(c->side[i].o, EINA_FALSE);
}
order[i] = i;
@ -163,9 +161,9 @@ _cube_pos(Cube *c,
}
while (!sorted);
eo_do(c->side[order[0]].o, efl_gfx_stack_raise());
efl_gfx_stack_raise(c->side[order[0]].o);
for (i = 1; i < 6; i++)
eo_do(c->side[order[i]].o, efl_gfx_stack_below(c->side[order[i - 1]].o));
efl_gfx_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
}
static void

View File

@ -57,11 +57,10 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
o = eo_add(EVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
eo_do(o,
efl_file_set(build_path(buf), NULL),
efl_gfx_fill_set(0, 0, 256, 256),
efl_gfx_size_set(256, 256),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(buf), NULL);
efl_gfx_fill_set(o, 0, 0, 256, 256);
efl_gfx_size_set(o, 256, 256);
efl_gfx_visible_set(o, EINA_TRUE);
}
POINT(0, 0, -w, -h, -d, 0, 0);
POINT(0, 1, w, -h, -d, 256, 0);
@ -129,14 +128,13 @@ _cube_pos(Cube *c,
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
if (evas_map_util_clockwise_get(m))
{
eo_do(c->side[i].o,
evas_obj_map_enable_set(1),
evas_obj_map_set(m),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
}
else
{
eo_do(c->side[i].o, efl_gfx_visible_set(EINA_FALSE));
efl_gfx_visible_set(c->side[i].o, EINA_FALSE);
}
order[i] = i;
@ -161,9 +159,9 @@ _cube_pos(Cube *c,
}
while (!sorted);
eo_do(c->side[order[0]].o, efl_gfx_stack_raise());
efl_gfx_stack_raise(c->side[order[0]].o);
for (i = 1; i < 6; i++)
eo_do(c->side[order[i]].o, efl_gfx_stack_below(c->side[order[i - 1]].o));
efl_gfx_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
}
static void

View File

@ -57,12 +57,11 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
o = eo_add(EVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
eo_do(o,
efl_file_set(build_path(buf), NULL),
efl_gfx_fill_set(0, 0, 256, 256),
efl_gfx_size_set(256, 256),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(buf), NULL);
efl_gfx_fill_set(o, 0, 0, 256, 256);
efl_gfx_size_set(o, 256, 256);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
POINT(0, 0, -w, -h, -d, 0, 0);
POINT(0, 1, w, -h, -d, 256, 0);
@ -129,9 +128,8 @@ _cube_pos(Cube *c,
255, 255, 255,
20, 20, 20);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
eo_do(c->side[i].o,
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
order[i] = i;
for (j = 0; j < 4; j++)
@ -155,9 +153,9 @@ _cube_pos(Cube *c,
}
while (!sorted);
eo_do(c->side[order[0]].o, efl_gfx_stack_raise());
efl_gfx_stack_raise(c->side[order[0]].o);
for (i = 1; i < 6; i++)
eo_do(c->side[order[i]].o, efl_gfx_stack_below(c->side[order[i - 1]].o));
efl_gfx_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
}
static void

View File

@ -57,11 +57,10 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
o = eo_add(EVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
eo_do(o,
efl_file_set(build_path(buf), NULL),
efl_gfx_fill_set(0, 0, 256, 256),
efl_gfx_size_set(256, 256),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(buf), NULL);
efl_gfx_fill_set(o, 0, 0, 256, 256);
efl_gfx_size_set(o, 256, 256);
efl_gfx_visible_set(o, EINA_TRUE);
}
POINT(0, 0, -w, -h, -d, 0, 0);
POINT(0, 1, w, -h, -d, 256, 0);
@ -127,9 +126,8 @@ _cube_pos(Cube *c,
255, 255, 255,
20, 20, 20);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
eo_do(c->side[i].o,
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
order[i] = i;
for (j = 0; j < 4; j++)
@ -153,9 +151,9 @@ _cube_pos(Cube *c,
}
while (!sorted);
eo_do(c->side[order[0]].o, efl_gfx_stack_raise());
efl_gfx_stack_raise(c->side[order[0]].o);
for (i = 1; i < 6; i++)
eo_do(c->side[order[i]].o, efl_gfx_stack_below(c->side[order[i - 1]].o));
efl_gfx_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
}
static void

View File

@ -57,12 +57,11 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
o = eo_add(EVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
eo_do(o,
efl_file_set(build_path(buf), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(buf), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
POINT(0, 0, -w, -h, -d, 0, 0);
POINT(0, 1, w, -h, -d, 720, 0);
@ -131,14 +130,13 @@ _cube_pos(Cube *c,
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -360, 720);
if (evas_map_util_clockwise_get(m))
{
eo_do(c->side[i].o,
evas_obj_map_enable_set(1),
evas_obj_map_set(m),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
}
else
{
eo_do(c->side[i].o, efl_gfx_visible_set(EINA_FALSE));
efl_gfx_visible_set(c->side[i].o, EINA_FALSE);
}
order[i] = i;
@ -163,9 +161,9 @@ _cube_pos(Cube *c,
}
while (!sorted);
eo_do(c->side[order[0]].o, efl_gfx_stack_raise());
efl_gfx_stack_raise(c->side[order[0]].o);
for (i = 1; i < 6; i++)
eo_do(c->side[order[i]].o, efl_gfx_stack_below(c->side[order[i - 1]].o));
efl_gfx_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
}
static void

View File

@ -57,12 +57,11 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
o = eo_add(EVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
eo_do(o,
efl_file_set(build_path(buf), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(buf), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
POINT(0, 0, -w, -h, -d, 0, 0);
POINT(0, 1, w, -h, -d, 720, 0);
@ -128,14 +127,13 @@ _cube_pos(Cube *c,
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -360, 720);
if (evas_map_util_clockwise_get(m))
{
eo_do(c->side[i].o,
evas_obj_map_enable_set(1),
evas_obj_map_set(m),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
}
else
{
eo_do(c->side[i].o, efl_gfx_visible_set(EINA_FALSE));
efl_gfx_visible_set(c->side[i].o, EINA_FALSE);
}
order[i] = i;
@ -160,9 +158,9 @@ _cube_pos(Cube *c,
}
while (!sorted);
eo_do(c->side[order[0]].o, efl_gfx_stack_raise());
efl_gfx_stack_raise(c->side[order[0]].o);
for (i = 1; i < 6; i++)
eo_do(c->side[order[i]].o, efl_gfx_stack_below(c->side[order[i - 1]].o));
efl_gfx_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
}
static void

View File

@ -32,22 +32,20 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
eo_do(o,
efl_file_set(build_path(buf), NULL),
efl_gfx_fill_set(0, 0, 256, 256),
efl_gfx_size_set(256, 256),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(buf), NULL);
efl_gfx_fill_set(o, 0, 0, 256, 256);
efl_gfx_size_set(o, 256, 256);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_reflec[i] = o;
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
eo_do(o,
efl_file_set(build_path(buf), NULL),
efl_gfx_fill_set(0, 0, 256, 256),
efl_gfx_size_set(256, 256),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(buf), NULL);
efl_gfx_fill_set(o, 0, 0, 256, 256);
efl_gfx_size_set(o, 256, 256);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -130,13 +128,13 @@ static void _loop(double t, int f)
if (c <= 0)
{
eo_do(o_images[i], efl_gfx_stack_raise());
eo_do(o_reflec[i], efl_gfx_stack_raise());
efl_gfx_stack_raise(o_images[i]);
efl_gfx_stack_raise(o_reflec[i]);
}
else
{
eo_do(o_images[i], efl_gfx_stack_lower());
eo_do(o_reflec[i], efl_gfx_stack_lower());
efl_gfx_stack_lower(o_images[i]);
efl_gfx_stack_lower(o_reflec[i]);
}
evas_map_point_coord_set (m, 0, x, y, -z);
@ -159,9 +157,8 @@ static void _loop(double t, int f)
x + (w / 2), y + (h / 2), 0);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_map_point_coord_set (m, 0, x, yy, -z);
evas_map_point_image_uv_set(m, 0, 0, 256);
@ -183,9 +180,8 @@ static void _loop(double t, int f)
x + (w / 2), y + (h / 2), 0);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
eo_do(o_reflec[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_reflec[i], 1);
evas_obj_map_set(o_reflec[i], m);
}
FPS_STD(NAME);

View File

@ -26,12 +26,11 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -69,9 +68,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,12 +26,11 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -69,9 +68,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,11 +26,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -67,9 +66,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,11 +26,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -66,9 +65,8 @@ static void _loop(double t, int f)
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,12 +26,11 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -69,9 +68,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,12 +26,11 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -69,9 +68,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,11 +26,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -67,9 +66,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,11 +26,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -67,9 +66,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,12 +26,11 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -64,9 +63,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,12 +26,11 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_image_smooth_scale_set(0),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -64,9 +63,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,10 +26,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o, efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -61,8 +61,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -26,11 +26,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -62,9 +61,8 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -25,21 +25,19 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i + 1] = o;
eo_do(o,
efl_file_set(build_path("e-logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
eo_do(o_images[i], evas_obj_clip_set(o));
evas_obj_clip_set(o_images[i], o);
}
done = 0;
}
@ -64,8 +62,8 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
eo_do(o_images[i + 1], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_position_set(o_images[i + 1], x, y);
}
FPS_STD(NAME);
}

View File

@ -23,25 +23,23 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-mask.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("texture.png"), NULL),
efl_gfx_fill_set(0, 0, win_w * 4, win_h * 4),
efl_gfx_size_set(win_w * 4, win_h * 4),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("texture.png"), NULL);
efl_gfx_fill_set(o, 0, 0, win_w * 4, win_h * 4);
efl_gfx_size_set(o, win_w * 4, win_h * 4);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -72,9 +70,8 @@ static void _loop(double t, int f)
win_w * 4, win_h * 4, 0);
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
eo_do(o_images[i],
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
}
FPS_STD(NAME);
}

View File

@ -23,25 +23,23 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-mask.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -68,7 +66,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
if (!m) m = evas_map_new(4);
evas_map_util_points_populate_from_geometry(m,
@ -77,9 +75,8 @@ static void _loop(double t, int f)
720, 420, 0);
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
eo_do(o_mask,
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_mask, 1);
evas_obj_map_set(o_mask, m);
FPS_STD(NAME);
}

View File

@ -23,26 +23,24 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-mask.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_image_smooth_scale_set(1),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 1);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -71,10 +69,9 @@ static void _loop(double t, int f)
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -23,26 +23,24 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-mask.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_image_smooth_scale_set(0),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 0);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -71,10 +69,9 @@ static void _loop(double t, int f)
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -25,21 +25,19 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("image.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i + 1] = o;
eo_do(o,
efl_file_set(build_path("e-logo-2.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
eo_do(o_images[i], evas_obj_clip_set(o));
evas_obj_clip_set(o_images[i], o);
}
done = 0;
}
@ -64,8 +62,8 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
eo_do(o_images[i + 1], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_position_set(o_images[i + 1], x, y);
}
FPS_STD(NAME);
}

View File

@ -25,21 +25,19 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("e-logo-2.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i + 1] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
eo_do(o_images[i], evas_obj_clip_set(o));
evas_obj_clip_set(o_images[i], o);
}
done = 0;
}
@ -64,8 +62,8 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
eo_do(o_images[i + 1], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_position_set(o_images[i + 1], x, y);
}
FPS_STD(NAME);
}

View File

@ -23,25 +23,23 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-mask.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -67,7 +65,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -23,25 +23,23 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-2.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_position_set((win_w - 120) / 2, (win_h - 160) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_position_set(o, (win_w - 120) / 2, (win_h - 160) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -67,7 +65,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -23,25 +23,23 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-mask.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120 / 2, 160 / 2),
efl_gfx_size_set(120 / 2, 160 / 2),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120 / 2, 160 / 2);
efl_gfx_size_set(o, 120 / 2, 160 / 2);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -67,7 +65,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -23,25 +23,23 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-2.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_position_set((win_w - 120) / 2, (win_h - 160) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_position_set(o, (win_w - 120) / 2, (win_h - 160) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -67,14 +65,13 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
w = 10 + (110 + (110 * sin((double)(f) / (14.3 * SLOW))));
h = 10 + (150 + (150 * sin((double)(f) / (21.7 * SLOW))));
eo_do(o_mask,
efl_gfx_fill_set(0, 0, w, h),
efl_gfx_size_set(w, h),
efl_gfx_position_set((win_w - w) / 2, (win_h - h) / 2));
efl_gfx_fill_set(o_mask, 0, 0, w, h);
efl_gfx_size_set(o_mask, w, h);
efl_gfx_position_set(o_mask, (win_w - w) / 2, (win_h - h) / 2);
FPS_STD(NAME);
}

View File

@ -23,25 +23,23 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-mask.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("texture.png"), NULL),
efl_gfx_fill_set(0, 0, 500, 444),
efl_gfx_size_set(win_w * 4, win_h * 4),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("texture.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 500, 444);
efl_gfx_size_set(o, win_w * 4, win_h * 4);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -67,7 +65,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 2);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -23,25 +23,23 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_mask = o;
eo_do(o,
efl_file_set(build_path("e-logo-mask.png"), NULL),
efl_gfx_fill_set(0, 0, 720, 420),
efl_gfx_size_set(720, 420),
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS,evas);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path("texture.png"), NULL),
efl_gfx_fill_set(0, 0, 500, 444),
efl_gfx_size_set(win_w * 4, win_h * 4),
evas_obj_clip_set(o_mask),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("texture.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 500, 444);
efl_gfx_size_set(o, win_w * 4, win_h * 4);
evas_obj_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -68,7 +66,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 2);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
if (!m) m = evas_map_new(4);
@ -78,9 +76,8 @@ static void _loop(double t, int f)
720, 420, 0);
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
eo_do(o_mask,
evas_obj_map_enable_set(1),
evas_obj_map_set(m));
evas_obj_map_enable_set(o_mask, 1);
evas_obj_map_set(o_mask, m);
FPS_STD(NAME);
}

View File

@ -26,10 +26,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o, efl_file_set(build_path("tp.png"), NULL),
efl_gfx_fill_set(0, 0, 640, 480),
efl_gfx_size_set(640, 480),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("tp.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 640, 480);
efl_gfx_size_set(o, 640, 480);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -54,9 +54,9 @@ static void _loop(double t, int f)
h *= (f / 100.0) * 4.0;
x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2);
eo_do(o_images[i], efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -32,13 +32,9 @@ static void _setup(void)
r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
eo_do(o,
efl_gfx_color_set(r, g, b, a),
evas_obj_line_xy_set(((win_w / 2) * (rnd()&0xff)) / 255,
((win_h / 2) * (rnd()&0xff)) / 255,
((win_w / 2) * (rnd()&0xff)) / 255 + (win_w / 2),
((win_h / 2) * (rnd()&0xff)) / 255 + (win_h / 2)),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, r, g, b, a);
evas_obj_line_xy_set(o, ((win_w / 2) * (rnd()&0xff)) / 255, ((win_h / 2) * (rnd()&0xff)) / 255, ((win_w / 2) * (rnd()&0xff)) / 255 + (win_w / 2), ((win_h / 2) * (rnd()&0xff)) / 255 + (win_h / 2));
efl_gfx_visible_set(o, EINA_TRUE);
}
@ -91,11 +87,11 @@ static void _loop(double t, int f)
for (i = 0; i < OBNUM; i++)
{
o = o_images[i];
eo_do(o, evas_obj_line_xy_get(&ox1, &oy1, &ox2, &oy2));
evas_obj_line_xy_get(o, &ox1, &oy1, &ox2, &oy2);
_rotate_point(&ox1, &oy1, i);
_rotate_point(&ox2, &oy2, i);
eo_do(o, evas_obj_line_xy_set(ox1, oy1, ox2, oy2));
evas_obj_line_xy_set(o, ox1, oy1, ox2, oy2);
}
FPS_STD(NAME);
}

View File

@ -20,43 +20,43 @@ static void
poly(Evas_Object *o, int type, Evas_Coord x, Evas_Coord y)
{
if (o)
eo_do(o, evas_obj_polygon_points_clear());
evas_obj_polygon_points_clear(o);
switch (type % 4)
{
case 0: /* triangle */
if (o)
eo_do(o, evas_obj_polygon_point_add(x + 50 , y + 0),
evas_obj_polygon_point_add(x + 100, y + 100),
evas_obj_polygon_point_add(x + 0 , y + 100));
evas_obj_polygon_point_add(o, x + 50, y + 0);
evas_obj_polygon_point_add(o, x + 100, y + 100);
evas_obj_polygon_point_add(o, x + 0, y + 100);
break;
case 1: /* square */
if (o)
eo_do(o, evas_obj_polygon_point_add(x + 0 , y + 0),
evas_obj_polygon_point_add(x + 100, y + 0),
evas_obj_polygon_point_add(x + 100, y + 100),
evas_obj_polygon_point_add(x + 0 , y + 100));
evas_obj_polygon_point_add(o, x + 0, y + 0);
evas_obj_polygon_point_add(o, x + 100, y + 0);
evas_obj_polygon_point_add(o, x + 100, y + 100);
evas_obj_polygon_point_add(o, x + 0, y + 100);
break;
case 2: /* hex */
if (o)
eo_do(o, evas_obj_polygon_point_add(x + 50 , y + 0),
evas_obj_polygon_point_add(x + 100, y + 30),
evas_obj_polygon_point_add(x + 100, y + 70),
evas_obj_polygon_point_add(x + 50 , y + 100),
evas_obj_polygon_point_add(x + 0 , y + 70),
evas_obj_polygon_point_add(x + 0 , y + 30));
evas_obj_polygon_point_add(o, x + 50, y + 0);
evas_obj_polygon_point_add(o, x + 100, y + 30);
evas_obj_polygon_point_add(o, x + 100, y + 70);
evas_obj_polygon_point_add(o, x + 50, y + 100);
evas_obj_polygon_point_add(o, x + 0, y + 70);
evas_obj_polygon_point_add(o, x + 0, y + 30);
break;
case 3: /* star */
if (o)
eo_do(o, evas_obj_polygon_point_add(x + 50 , y + 0),
evas_obj_polygon_point_add(x + 60 , y + 40),
evas_obj_polygon_point_add(x + 90 , y + 30),
evas_obj_polygon_point_add(x + 70 , y + 60),
evas_obj_polygon_point_add(x + 90 , y + 100),
evas_obj_polygon_point_add(x + 50 , y + 70),
evas_obj_polygon_point_add(x + 10 , y + 100),
evas_obj_polygon_point_add(x + 30 , y + 60),
evas_obj_polygon_point_add(x + 10 , y + 30),
evas_obj_polygon_point_add(x + 40 , y + 40));
evas_obj_polygon_point_add(o, x + 50, y + 0);
evas_obj_polygon_point_add(o, x + 60, y + 40);
evas_obj_polygon_point_add(o, x + 90, y + 30);
evas_obj_polygon_point_add(o, x + 70, y + 60);
evas_obj_polygon_point_add(o, x + 90, y + 100);
evas_obj_polygon_point_add(o, x + 50, y + 70);
evas_obj_polygon_point_add(o, x + 10, y + 100);
evas_obj_polygon_point_add(o, x + 30, y + 60);
evas_obj_polygon_point_add(o, x + 10, y + 30);
evas_obj_polygon_point_add(o, x + 40, y + 40);
break;
default:
break;
@ -80,8 +80,8 @@ static void _setup(void)
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
if (o)
eo_do(o, efl_gfx_color_set(r, g, b, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, r, g, b, a);
efl_gfx_visible_set(o, EINA_TRUE);
poly(o, i, 0, 0);
}
done = 0;
@ -105,13 +105,13 @@ static void _loop(double t, int f)
{
o = o_images[i];
if (o)
eo_do(o, efl_gfx_size_get(&w, &h));
efl_gfx_size_get(o, &w, &h);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 4);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 4);
if (o)
eo_do(o, efl_gfx_position_set(x, y));
efl_gfx_position_set(o, x, y);
}
FPS_STD(NAME);
}

View File

@ -23,11 +23,10 @@ static void _setup(void)
Evas_Object *o,*src;
o = eo_add(EVAS_IMAGE_CLASS, evas);
eo_do(o,
efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
src = o;
o_images[0] = src;
@ -35,11 +34,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
evas_obj_image_source_set(src),
efl_gfx_size_set(120, 160),
efl_gfx_fill_set(0,0,120,160),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_image_source_set(o, src);
efl_gfx_size_set(o, 120, 160);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -64,7 +62,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -27,20 +27,20 @@ static void _setup(void)
Evas_Object *o,*src;
o = eo_add(EVAS_IMAGE_CLASS, evas);
eo_do(o, efl_file_set(build_path("logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_position_set(-400, -300));
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_position_set(o, -400, -300);
src = o;
for (i = 0; i < OBNUM / 2; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o, evas_obj_image_source_set(src, NULL),
efl_gfx_size_set(120, 160),
efl_gfx_fill_set(0,0,120,160),
efl_gfx_visible_set(EINA_TRUE));
evas_obj_image_source_set(o, src, NULL);
efl_gfx_size_set(o, 120, 160);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -65,7 +65,7 @@ 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);
eo_do(o_images[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_images[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -29,16 +29,15 @@ static void _setup(void)
{
o = eo_add(EVAS_TEXT_CLASS, evas);
o_texts[i] = o;
eo_do(o,
efl_text_properties_font_set("Vera-Bold", 20),
efl_text_set("This is a test string"),
evas_obj_text_style_set(st),
efl_gfx_color_set(255, 255, 255, 255),
evas_obj_text_shadow_color_set(0, 0, 0, 24),
evas_obj_text_glow_color_set(100, 80, 40, 100),
evas_obj_text_glow2_color_set(50, 10, 5, 50),
evas_obj_text_outline_color_set(0, 0, 0, 255),
efl_gfx_visible_set(EINA_TRUE));
efl_text_properties_font_set(o, "Vera-Bold", 20);
efl_text_set(o, "This is a test string");
evas_obj_text_style_set(o, st);
efl_gfx_color_set(o, 255, 255, 255, 255);
evas_obj_text_shadow_color_set(o, 0, 0, 0, 24);
evas_obj_text_glow_color_set(o, 100, 80, 40, 100);
evas_obj_text_glow2_color_set(o, 50, 10, 5, 50);
evas_obj_text_outline_color_set(o, 0, 0, 0, 255);
efl_gfx_visible_set(o, EINA_TRUE);
st++;
}
st = i;
@ -48,13 +47,12 @@ static void _setup(void)
s = o_texts[i % st];
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_texts[i] = o;
eo_do(o, evas_obj_image_source_set(s));
evas_obj_image_source_set(o, s);
/* FIXME s == NULL*/
eo_do(s, efl_gfx_size_get(&w, &h));
eo_do(o,
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_size_get(s, &w, &h);
efl_gfx_size_set(o, w, h);
efl_gfx_fill_set(o, 0, 0, w, h);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -74,12 +72,12 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h;
for (i = 0; i < OBNUM; i++)
{
eo_do(o_texts[i], efl_gfx_size_get(&w, &h));
efl_gfx_size_get(o_texts[i], &w, &h);
x = (win_w / 2) - (w / 2);
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)) * (w / 2);
eo_do(o_texts[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_texts[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -38,33 +38,30 @@ static void _setup(void)
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))]);
eo_do(o,
efl_text_properties_font_set("Vera-Bold", 20),
efl_text_set(buf),
efl_gfx_color_set(0, 0, 0, 255),
efl_gfx_size_get(&w, &h));
efl_text_properties_font_set(o, "Vera-Bold", 20);
efl_text_set(o, buf);
efl_gfx_color_set(o, 0, 0, 0, 255);
efl_gfx_size_get(o, &w, &h);
x = (win_w / 2) - (w / 2);
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
eo_do(o,
efl_gfx_position_set(x, y),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, x, y);
efl_gfx_visible_set(o, EINA_TRUE);
for (i = 1 ; i < OBNUM ; i ++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_texts[i] = o;
eo_do(o,
evas_obj_image_source_set(o_texts[0]));
eo_do(o_texts[0], efl_gfx_size_get(&w, &h));
eo_do(o, efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h));
evas_obj_image_source_set(o, o_texts[0]);
efl_gfx_size_get(o_texts[0], &w, &h);
efl_gfx_size_set(o, w, h);
efl_gfx_fill_set(o, 0, 0, w, h);
x = (win_w / 2) - (w / 2);
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
eo_do(o, efl_gfx_position_set(x, y),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, x, y);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -92,14 +89,12 @@ static void _loop(double t, int f)
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))]);
eo_do(o_texts[0],
efl_text_set(buf),
efl_gfx_size_get(&w, &h));
efl_text_set(o_texts[0], buf);
efl_gfx_size_get(o_texts[0], &w, &h);
for (i = 1; i < OBNUM; i++)
{
eo_do(o_texts[i],
efl_gfx_size_set(w,h),
efl_gfx_fill_set(0,0,w,h));
efl_gfx_size_set(o_texts[i], w, h);
efl_gfx_fill_set(o_texts[i], 0, 0, w, h);
}
FPS_STD(NAME);
}

View File

@ -32,9 +32,8 @@ static void _setup(void)
r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
eo_do(o,
efl_gfx_color_set(r, g, b, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, r, g, b, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -61,9 +60,8 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
}
FPS_STD(NAME);
}

View File

@ -35,8 +35,8 @@ static void _setup(void)
r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
eo_do(o, efl_gfx_color_set(r, g, b, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, r, g, b, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -63,8 +63,8 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
}
FPS_STD(NAME);
}

View File

@ -33,9 +33,8 @@ static void _setup(void)
r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
eo_do(o,
efl_gfx_color_set(r, g, b, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, r, g, b, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -62,9 +61,8 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
}
FPS_STD(NAME);
}

View File

@ -36,8 +36,8 @@ static void _setup(void)
r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
eo_do(o, efl_gfx_color_set(r, g, b, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, r, g, b, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -64,8 +64,8 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
}
FPS_STD(NAME);
}

View File

@ -32,9 +32,8 @@ static void _setup(void)
r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
eo_do(o,
efl_gfx_color_set(r, g, b, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, r, g, b, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -61,9 +60,8 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i],
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
}
FPS_STD(NAME);
}

View File

@ -35,8 +35,8 @@ static void _setup(void)
r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
eo_do(o, efl_gfx_color_set(r, g, b, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, r, g, b, a);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -63,8 +63,8 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h));
efl_gfx_position_set(o_images[i], x, y);
efl_gfx_size_set(o_images[i], w, h);
}
FPS_STD(NAME);
}

View File

@ -56,25 +56,23 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
eo_do(o,
efl_file_set(build_path(icons[i % 13]), NULL),
efl_gfx_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
efl_gfx_size_set(ICON_SIZE, ICON_SIZE),
efl_gfx_position_set(x + 8, y),
efl_gfx_visible_set(EINA_TRUE));
efl_file_set(o, build_path(icons[i % 13]), NULL);
efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE);
efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE);
efl_gfx_position_set(o, x + 8, y);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_TEXT_CLASS, evas);
o_texts[i] = o;
eo_do(o,
efl_text_properties_font_set("Vera-Bold", 10),
efl_text_set(icons[i % 13]),
evas_obj_text_style_set(EVAS_TEXT_STYLE_FAR_SOFT_SHADOW),
efl_gfx_color_set(255, 255, 255, 255),
evas_obj_text_shadow_color_set(0, 0, 0, 24),
efl_gfx_visible_set(EINA_TRUE),
efl_gfx_size_get(&tw, &th));
efl_text_properties_font_set(o, "Vera-Bold", 10);
efl_text_set(o, icons[i % 13]);
evas_obj_text_style_set(o, EVAS_TEXT_STYLE_FAR_SOFT_SHADOW);
efl_gfx_color_set(o, 255, 255, 255, 255);
evas_obj_text_shadow_color_set(o, 0, 0, 0, 24);
efl_gfx_visible_set(o, EINA_TRUE);
efl_gfx_size_get(o, &tw, &th);
cent = ICON_SIZE + 16 - tw / 2;
eo_do(o, efl_gfx_position_set(x + cent, y + ICON_SIZE + 4));
efl_gfx_position_set(o, x + cent, y + ICON_SIZE + 4);
x += ICON_SIZE + 16;
if (x > win_w)
{
@ -89,13 +87,12 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_snap = o;
eo_do(o,
efl_gfx_visible_set(EINA_TRUE),
efl_gfx_position_set(50, 50),
efl_gfx_size_set(200, 200),
efl_gfx_fill_set(0, 0, 200, 200),
evas_obj_image_snapshot_set(EINA_TRUE),
efl_gfx_filter_program_set(filter, "test"));
efl_gfx_visible_set(o, EINA_TRUE);
efl_gfx_position_set(o, 50, 50);
efl_gfx_size_set(o, 200, 200);
efl_gfx_fill_set(o, 0, 0, 200, 200);
evas_obj_image_snapshot_set(o, EINA_TRUE);
efl_gfx_filter_program_set(o, filter, "test");
done = 0;
}
@ -124,10 +121,10 @@ static void _loop(double t, int f)
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(o_images[i], efl_gfx_position_set(x + 8, y));
eo_do(o_texts[i], efl_gfx_size_get(&tw, &th));
efl_gfx_position_set(o_images[i], x + 8, y);
efl_gfx_size_get(o_texts[i], &tw, &th);
cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], efl_gfx_position_set(x + cent, y + ICON_SIZE + 4));
efl_gfx_position_set(o_texts[i], x + cent, y + ICON_SIZE + 4);
x += ICON_SIZE + 16;
if (x > win_w)
{

View File

@ -27,10 +27,10 @@ static void _setup(void)
{
o = eo_add(EVAS_TEXT_CLASS, evas);
o_texts[i] = o;
eo_do(o, efl_text_properties_font_set("Vera-Bold", 20),
efl_text_set("This is a test string"),
efl_gfx_color_set(0, 0, 0, 255),
efl_gfx_visible_set(EINA_TRUE));
efl_text_properties_font_set(o, "Vera-Bold", 20);
efl_text_set(o, "This is a test string");
efl_gfx_color_set(o, 0, 0, 0, 255);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -49,12 +49,12 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h;
for (i = 0; i < OBNUM; i++)
{
eo_do(o_texts[i], efl_gfx_size_get(&w, &h));
efl_gfx_size_get(o_texts[i], &w, &h);
x = (win_w / 2) - (w / 2);
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)) * (w / 2);
eo_do(o_texts[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_texts[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -34,21 +34,21 @@ static void _setup(void)
{
o = eo_add(EVAS_TEXT_CLASS, evas);
o_texts[i] = o;
eo_do(o, efl_text_properties_font_set("Vera-Bold", 20));
efl_text_properties_font_set(o, "Vera-Bold", 20);
snprintf(buf, sizeof(buf), "%s %s %s %s.",
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))]);
eo_do(o, efl_text_set(buf),
efl_gfx_color_set(0, 0, 0, 255),
efl_gfx_size_get(&w, &h));
efl_text_set(o, buf);
efl_gfx_color_set(o, 0, 0, 0, 255);
efl_gfx_size_get(o, &w, &h);
x = (win_w / 2) - (w / 2);
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
eo_do(o, efl_gfx_position_set(x, y),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, x, y);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
}
@ -77,7 +77,7 @@ static void _loop(double t, int f)
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))]);
eo_do(o_texts[i], efl_text_set(buf));
efl_text_set(o_texts[i], buf);
}
FPS_STD(NAME);
}

View File

@ -29,16 +29,15 @@ static void _setup(void)
{
o = eo_add(EVAS_TEXT_CLASS, evas);
o_texts[i] = o;
eo_do(o,
efl_text_properties_font_set("Vera-Bold", 20),
efl_text_set("This is a test string"),
evas_obj_text_style_set(st),
efl_gfx_color_set(255, 255, 255, 255),
evas_obj_text_shadow_color_set(0, 0, 0, 24),
evas_obj_text_glow_color_set(100, 80, 40, 100),
evas_obj_text_glow2_color_set(50, 10, 5, 50),
evas_obj_text_outline_color_set(0, 0, 0, 255),
efl_gfx_visible_set(EINA_TRUE));
efl_text_properties_font_set(o, "Vera-Bold", 20);
efl_text_set(o, "This is a test string");
evas_obj_text_style_set(o, st);
efl_gfx_color_set(o, 255, 255, 255, 255);
evas_obj_text_shadow_color_set(o, 0, 0, 0, 24);
evas_obj_text_glow_color_set(o, 100, 80, 40, 100);
evas_obj_text_glow2_color_set(o, 50, 10, 5, 50);
evas_obj_text_outline_color_set(o, 0, 0, 0, 255);
efl_gfx_visible_set(o, EINA_TRUE);
st++;
if (st > EVAS_TEXT_STYLE_FAR_SOFT_SHADOW) st = EVAS_TEXT_STYLE_SHADOW;
}
@ -59,12 +58,12 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h;
for (i = 0; i < OBNUM; i++)
{
eo_do(o_texts[i], efl_gfx_size_get(&w, &h));
efl_gfx_size_get(o_texts[i], &w, &h);
x = (win_w / 2) - (w / 2);
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)) * (w / 2);
eo_do(o_texts[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_texts[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -36,20 +36,20 @@ static void _setup(void)
{
o = eo_add(EVAS_TEXT_CLASS, evas);
o_texts[i] = o;
eo_do(o, efl_text_properties_font_set("Vera-Bold", 20));
efl_text_properties_font_set(o, "Vera-Bold", 20);
snprintf(buf, sizeof(buf), "%s %s %s %s.",
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))]);
eo_do(o, efl_text_set(buf),
evas_obj_text_style_set(st),
efl_gfx_color_set(255, 255, 255, 255),
evas_obj_text_shadow_color_set(0, 0, 0, 24),
evas_obj_text_glow_color_set(100, 80, 40, 100),
evas_obj_text_glow2_color_set(50, 10, 5, 50),
evas_obj_text_outline_color_set(0, 0, 0, 255),
efl_gfx_visible_set(EINA_TRUE));
efl_text_set(o, buf);
evas_obj_text_style_set(o, st);
efl_gfx_color_set(o, 255, 255, 255, 255);
evas_obj_text_shadow_color_set(o, 0, 0, 0, 24);
evas_obj_text_glow_color_set(o, 100, 80, 40, 100);
evas_obj_text_glow2_color_set(o, 50, 10, 5, 50);
evas_obj_text_outline_color_set(o, 0, 0, 0, 255);
efl_gfx_visible_set(o, EINA_TRUE);
st++;
if (st > EVAS_TEXT_STYLE_FAR_SOFT_SHADOW) st = EVAS_TEXT_STYLE_SHADOW;
}
@ -70,12 +70,12 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h;
for (i = 0; i < OBNUM; i++)
{
eo_do(o_texts[i], efl_gfx_size_get(&w, &h));
efl_gfx_size_get(o_texts[i], &w, &h);
x = (win_w / 2) - (w / 2);
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)) * (w / 2);
eo_do(o_texts[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_texts[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -30,11 +30,9 @@ static void _setup(void)
(st,
"DEFAULT='font=Sans font_size=10 color=#000000 wrap=word'"
);
eo_do(o,
evas_obj_textblock_style_set(st),
evas_obj_textblock_clear(),
evas_obj_textblock_text_markup_set(
"This is a test of auto alignment in Evas<ps/>"
evas_obj_textblock_style_set(o, st); \
evas_obj_textblock_clear(o); \
evas_obj_textblock_text_markup_set(o, "This is a test of auto alignment in Evas<ps/>"
"<br/>"
"This text should be left aligned<ps/>"
"\xE2\x80\x8FThis text should be right aligned<ps/>"
@ -48,11 +46,10 @@ static void _setup(void)
"זה טקסט בעברית<ps/>"
"<br/>"
"In the next text, the paragraph should be right aligned and the<br/>"
"words should appear in the following order: 'דוגמה' first, 'of' second,<br/>"
"words should appear in the following order: 'דוגמה' first, 'of' second, <br/>"
"'טקסט' third, 'english' fourth and 'in' fifth, counting from right to left<ps/>"
"דוגמה of טקסט in english."
),
efl_gfx_visible_set(EINA_TRUE));
"דוגמה of טקסט in english."); \
efl_gfx_visible_set(o, EINA_TRUE);
evas_textblock_style_free(st);
done = 0;
@ -70,15 +67,14 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h, w0, h0;
int i = 0;
eo_do(o_text, evas_obj_textblock_size_native_get(&w0, &h0));
evas_obj_textblock_size_native_get(o_text, &w0, &h0);
w = w0;
h = h0;
w += fabs(sin((double)(f + (i * 13)) / (31.1 * SLOW))) * (w0);
x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h0 / 2);
eo_do(o_text,
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h));
efl_gfx_position_set(o_text, x, y);
efl_gfx_size_set(o_text, w, h);
FPS_STD(NAME);
}

View File

@ -39,14 +39,12 @@ static void _setup(void)
"p='+ font=Vera,Kochi font_size=10 align=left'"
"/p='- \n'"
);
eo_do(o,
evas_obj_textblock_style_set(st),
evas_obj_textblock_clear(),
evas_obj_textblock_text_markup_set(
"<center><h1>Title</h1></center><br/>"
evas_obj_textblock_style_set(o, st);
evas_obj_textblock_clear(o);
evas_obj_textblock_text_markup_set(o, "<center><h1>Title</h1></center><br/>"
"<p><tab>A pragraph here <red>red text</red> and stuff.</p>"
"<p>And escaping &lt; and &gt; as well as &amp; as <h1>normal.</h1></p>"
"<p>If you want a newline use &lt;br&gt;<br/>woo a new line!</p>"
"<p>And escaping &lt, and &gt, as well as &amp, as <h1>normal.</h1></p>"
"<p>If you want a newline use &lt, br&gt, <br/>woo a new line!</p>"
"<right>Right "
"<style=outline color=#fff outline_color=#000>aligned</> "
"<style=shadow shadow_color=#fff8>text</> "
@ -73,23 +71,23 @@ static void _setup(void)
"<backing=off linerelsize=0%>"
"<blockquote>"
"(日本語 カタカナ ひらがな) "
"<style=outline color=#fff outline_color=#000>Round about the cauldron go;</> "
"<style=outline color=#fff outline_color=#000>Round about the cauldron go, </> "
"In the poison'd entrails throw. "
"<style=shadow shadow_color=#fff8>Toad, that under cold stone</> "
"Days and nights has thirty-one "
"<style=soft_shadow shadow_color=#0002>Swelter'd venom sleeping got,</> "
"<style=soft_shadow shadow_color=#0002>Swelter'd venom sleeping got, </> "
"<style=glow color=#fff glow2_color=#fe87 glow_color=#f214 >Boil thou first i' the charmed pot.</> "
"Double, double toil and trouble; "
"Double, double toil and trouble, "
"Fire burn, and cauldron bubble. "
"<style=far_shadow shadow_color=#0005>Fillet of a fenny snake,</> "
"In the cauldron boil and bake; "
"<style=outline_shadow color=#fff outline_color=#8228 shadow_color=#005>Eye of newt and toe of frog,</> "
"<underline=on underline_color=#00f>Wool of bat and tongue of dog,</> "
"<backing=on backing_color=#ff08>Adder's fork and blind-worm's sting,</> "
"<underline=double underline_color=#f00 underline2_color=#00f>Lizard's leg and owlet's wing,</> "
"<style=far_shadow shadow_color=#0005>Fillet of a fenny snake, </> "
"In the cauldron boil and bake, "
"<style=outline_shadow color=#fff outline_color=#8228 shadow_color=#005>Eye of newt and toe of frog, </> "
"<underline=on underline_color=#00f>Wool of bat and tongue of dog, </> "
"<backing=on backing_color=#ff08>Adder's fork and blind-worm's sting, </> "
"<underline=double underline_color=#f00 underline2_color=#00f>Lizard's leg and owlet's wing, </> "
"<color=#808 font_size=20>For a charm of powerful trouble, "
"Like a hell-broth boil and bubble. "
"Double, double toil and trouble;</> "
"Double, double toil and trouble, </> "
"Fire burn and cauldron bubble. "
"Scale of dragon, tooth of wolf, "
"Witches' mummy, maw and gulf "
@ -104,15 +102,14 @@ static void _setup(void)
"Make the gruel thick and slab: "
"Add thereto a tiger's chaudron, "
"For the ingredients of our cauldron. "
"Double, double toil and trouble; "
"Double, double toil and trouble, "
"Fire burn and cauldron bubble. "
"Cool it with a baboon's blood, "
"Then the charm is firm and good. "
"Heizölrückstoßabdämpfung fløde pingüino kilómetros cœur déçu l'âme "
"plutôt naïve Louÿs rêva crapaüter Íosa Úrmhac Óighe pór Éava Ádhaim"
"</blockquote>"
),
efl_gfx_visible_set(EINA_TRUE));
"</blockquote>");
efl_gfx_visible_set(o, EINA_TRUE);
evas_textblock_style_free(st);
@ -139,9 +136,8 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (86.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2);
eo_do(o_text,
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, 5000));
efl_gfx_position_set(o_text, x, y);
efl_gfx_size_set(o_text, w, 5000);
FPS_STD(NAME);
}

View File

@ -30,11 +30,9 @@ static void _setup(void)
(st,
"DEFAULT='font=Sans font_size=10 align=left color=#000000 wrap=word'"
);
eo_do(o,
evas_obj_textblock_style_set(st),
evas_obj_textblock_clear(),
evas_obj_textblock_text_markup_set(
"This is a test of International test rendering in Evas<br/>"
evas_obj_textblock_style_set(o, st);
evas_obj_textblock_clear(o);
evas_obj_textblock_text_markup_set(o, "This is a test of International test rendering in Evas<br/>"
"<br/>"
"Danish: 'Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen'<br/>"
"German: 'Heizölrückstoßabdämpfung'<br/>"
@ -63,7 +61,7 @@ static void _setup(void)
"Greek: 'Γιούνικοντ'<br/>"
/* also test the html entity stuff a bit */
"Greek continued: '&tau;&upsilon;&lambda;&theta;'<br/>"
"Greek continued: '&tau, &upsilon, &lambda, &theta, '<br/>"
"Gujarati: 'યૂનિકોડ'<br/>"
"Gurmukhi: 'ਯੂਨਿਕੋਡ'<br/>"
@ -81,9 +79,8 @@ static void _setup(void)
"Telugu: 'యూనికోడ్'<br/>"
"Thai: 'ยูนืโคด'<br/>"
"Tibetan: 'ཨུ་ནི་ཀོཌྲ།'<br/>"
"Yiddish: 'יוניקאָד'<br/>"
),
efl_gfx_visible_set(EINA_TRUE));
"Yiddish: 'יוניקאָד'<br/>");
efl_gfx_visible_set(o, EINA_TRUE);
evas_textblock_style_free(st);
@ -102,16 +99,15 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h, w0, h0;
int i = 0;
eo_do(o_text, evas_obj_textblock_size_native_get(&w0, &h0));
evas_obj_textblock_size_native_get(o_text, &w0, &h0);
w = w0;
h = h0;
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (31.1 * SLOW)) * (w0 / (2 * 2));
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2));
eo_do(o_text,
efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h));
efl_gfx_position_set(o_text, x, y);
efl_gfx_size_set(o_text, w, h);
FPS_STD(NAME);
}

View File

@ -30,11 +30,9 @@ static void _setup(void)
(st,
"DEFAULT='font=Sans font_size=10 color=#000000 wrap=word'"
);
eo_do(o,
evas_obj_textblock_style_set(st),
evas_obj_textblock_clear(),
evas_obj_textblock_text_markup_set(
"This test just appends and removes text from different paragraphs, it's "
evas_obj_textblock_style_set(o, st); \
evas_obj_textblock_clear(o); \
evas_obj_textblock_text_markup_set(o, "This test just appends and removes text from different paragraphs, it's "
"not a very visual test, it's included for benchmarking purposes."
"<ps/>"
"Enlightenment is the flagship and original name bearer for this project. Once it was just a humble window manager for X11 that wanted to do things differently. To do them better, but it has expanded. This can be confusing so when we refer to Enlightenment, we may mean the project as a whole or just the window manager proper. The libraries behind Enlightenment are referred to as EFL collectively, each with a specific name and purpose."
@ -91,11 +89,10 @@ static void _setup(void)
"Various Processors<ps/>Screens from even less than QVGA (320x240 or 240x320) screens all the way up to and beyond full-HD (1920x1080) are covered by EFL. It has the ability to scale user interfaces to almost any sane resolution, as well as adapt to differing input device resolutions, from mouse and stylus to fat fingers. It can draw displays from e-paper through 8-bit paletted displays, 16bit beautifully dithered ones all the way to full 24/32bit OLED beauties.<br/>"
"Graphics"
"<ps/>"
"Enlightenment is built by designers and programmers who want others to be able to do more with less. Some of Enlightenment's libraries do not do anything with graphics at all, but it is the ones that do that are the shining stars of the Enlightenment world.<ps/>Evas is the canvas layer. It is not a drawing library. It is not like OpenGL, Cairo, XRender, GDI, DirectFB etc. It is a scene graph library that retains state of all objects in it. They are created then manipulated until they are no longer needed, at which point they are deleted. This allows the programmer to work in terms that a designer thinks of. It is direct mapping, as opposed to having to convert the concepts into drawing commands in the right order, calculate minimum drawing calls needed to get the job done etc.<ps/>Evas also handles abstracting the rendering mechanism. With zero changes the same application can move from software to OpenGL rendering, as they all use an abstracted scene graph to describe the world (canvas) to Evas. Evas supports multiple targets, but the most useful are the high-speed software rendering engines and OpenGL (as well as OpenGL-ES 2.0).<ps/>Evas not only does quality rendering and compositing, but also can scale, rotate and fully 3D transform objects, allowing for sought-after 3D effects in your interfaces. It supplies these abilities in both software and OpenGL rendering, so you are never caught with unexpected loss of features. The software rendering is even fast enough to provide the 3D without any acceleration on devices for simple uses.<ps/>Edje is a meta-object design library that is somewhere between Flash, PSD, SVG and HTML+CSS. It separates design out from code and into a dynamically loaded data file. This file is compressed and loaded very quickly, along with being cached and shared betweeen instances.<ps/>This allows design to be provided at runtime by different design (EDJ) files, leaving the programmer to worry about overall application implementation and coarse grained UI as opposed to needing to worry about all the little details that the artists may vary even until the day before shipping the product.<br/>"
),
efl_gfx_position_set(0, 0),
efl_gfx_size_set(win_w, win_h),
efl_gfx_visible_set(EINA_TRUE));
"Enlightenment is built by designers and programmers who want others to be able to do more with less. Some of Enlightenment's libraries do not do anything with graphics at all, but it is the ones that do that are the shining stars of the Enlightenment world.<ps/>Evas is the canvas layer. It is not a drawing library. It is not like OpenGL, Cairo, XRender, GDI, DirectFB etc. It is a scene graph library that retains state of all objects in it. They are created then manipulated until they are no longer needed, at which point they are deleted. This allows the programmer to work in terms that a designer thinks of. It is direct mapping, as opposed to having to convert the concepts into drawing commands in the right order, calculate minimum drawing calls needed to get the job done etc.<ps/>Evas also handles abstracting the rendering mechanism. With zero changes the same application can move from software to OpenGL rendering, as they all use an abstracted scene graph to describe the world (canvas) to Evas. Evas supports multiple targets, but the most useful are the high-speed software rendering engines and OpenGL (as well as OpenGL-ES 2.0).<ps/>Evas not only does quality rendering and compositing, but also can scale, rotate and fully 3D transform objects, allowing for sought-after 3D effects in your interfaces. It supplies these abilities in both software and OpenGL rendering, so you are never caught with unexpected loss of features. The software rendering is even fast enough to provide the 3D without any acceleration on devices for simple uses.<ps/>Edje is a meta-object design library that is somewhere between Flash, PSD, SVG and HTML+CSS. It separates design out from code and into a dynamically loaded data file. This file is compressed and loaded very quickly, along with being cached and shared betweeen instances.<ps/>This allows design to be provided at runtime by different design (EDJ) files, leaving the programmer to worry about overall application implementation and coarse grained UI as opposed to needing to worry about all the little details that the artists may vary even until the day before shipping the product.<br/>"); \
efl_gfx_position_set(o, 0, 0); \
efl_gfx_size_set(o, win_w, win_h); \
efl_gfx_visible_set(o, EINA_TRUE);
evas_textblock_style_free(st);
@ -114,7 +111,7 @@ static void _loop(double t, int f)
{
Evas_Textblock_Cursor *cur;
static Evas_Textblock_Cursor *cur2;
eo_do(o_text, cur = evas_obj_textblock_cursor_get());
cur = evas_obj_textblock_cursor_get(o_text);
evas_textblock_cursor_text_append(cur, "*");
evas_textblock_cursor_char_delete(cur);
@ -122,7 +119,7 @@ static void _loop(double t, int f)
if (!o_text) cur2 = NULL;
if (!cur2)
{
eo_do(o_text, cur2 = evas_obj_textblock_cursor_new());
cur2 = evas_obj_textblock_cursor_new(o_text);
evas_textblock_cursor_paragraph_last(cur2);
evas_textblock_cursor_paragraph_char_first(cur2);
}

View File

@ -220,15 +220,15 @@ static int test_item = -1;
static void
_ui_menu_show(Eina_Bool visibility)
{
eo_do(o_menu_logo, efl_gfx_visible_set(visibility));
eo_do(o_menu_title, efl_gfx_visible_set(visibility));
eo_do(o_menu_icon, efl_gfx_visible_set(visibility));
eo_do(o_menu_icon_sel, efl_gfx_visible_set(visibility));
efl_gfx_visible_set(o_menu_logo, visibility);
efl_gfx_visible_set(o_menu_title, visibility);
efl_gfx_visible_set(o_menu_icon, visibility);
efl_gfx_visible_set(o_menu_icon_sel, visibility);
/* FIXME: ask if it's ok o_menu_icon_sel2 == NULL */
eo_do(o_menu_icon_sel2, efl_gfx_visible_set(visibility));
eo_do(o_menu_text_sel, efl_gfx_visible_set(visibility));
eo_do(o_title, efl_gfx_visible_set(visibility));
eo_do(o_byline, efl_gfx_visible_set(visibility));
efl_gfx_visible_set(o_menu_icon_sel2, visibility);
efl_gfx_visible_set(o_menu_text_sel, visibility);
efl_gfx_visible_set(o_title, visibility);
efl_gfx_visible_set(o_byline, visibility);
}
static void
@ -244,12 +244,12 @@ _ui_select(void)
Menu_Item *mi;
mi = l->data;
eo_do(mi->o_icon, efl_gfx_visible_set(EINA_FALSE));
efl_gfx_visible_set(mi->o_icon, EINA_FALSE);
if (i == menu_sel)
func = mi->func;
}
eo_do(o_title, efl_gfx_visible_set(EINA_FALSE));
eo_do(o_byline, efl_gfx_visible_set(EINA_FALSE));
efl_gfx_visible_set(o_title, EINA_FALSE);
efl_gfx_visible_set(o_byline, EINA_FALSE);
menu_active = 0;
if (func) func();
@ -357,15 +357,15 @@ _ui_menu_item_full_add(Eina_Bool test,
mi = malloc(sizeof(Menu_Item));
mi->o_icon = eo_add(EVAS_IMAGE_CLASS, evas);
eo_do(mi->o_icon, efl_file_set(build_path(icon), NULL),
efl_gfx_size_set(32, 32),
efl_gfx_fill_set(0, 0, 32, 32));
efl_file_set(mi->o_icon, build_path(icon), NULL);
efl_gfx_size_set(mi->o_icon, 32, 32);
efl_gfx_fill_set(mi->o_icon, 0, 0, 32, 32);
mi->test = test;
mi->icon = strdup(icon);
mi->text = strdup(text);
mi->func = func;
menu = eina_list_append(menu, mi);
eo_do(o_menu_icon_sel2, efl_gfx_stack_raise());
efl_gfx_stack_raise(o_menu_icon_sel2);
}
#define _ui_menu_item_add(Icon, Text, Func) _ui_menu_item_full_add(EINA_TRUE, Icon, Text, Func)
@ -386,90 +386,90 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
win_h = ui_h;
o = eo_add(EVAS_RECTANGLE_CLASS, evas);
eo_do(o, efl_gfx_position_set(0, 0),
efl_gfx_size_set(win_w, win_h),
efl_gfx_color_set(0, 0, 0, 0),
efl_gfx_stack_layer_set(1000),
evas_obj_focus_set(1),
efl_gfx_visible_set(EINA_TRUE),
eo_event_callback_array_add(ui_callbacks(), NULL));
efl_gfx_position_set(o, 0, 0);
efl_gfx_size_set(o, win_w, win_h);
efl_gfx_color_set(o, 0, 0, 0, 0);
efl_gfx_stack_layer_set(o, 1000);
evas_obj_focus_set(o, 1);
efl_gfx_visible_set(o, EINA_TRUE);
eo_event_callback_array_add(o, ui_callbacks(), NULL);
o_bg = o;
o = eo_add(EVAS_RECTANGLE_CLASS, evas);
eo_do(o, efl_gfx_position_set(0, 0),
efl_gfx_size_set(win_w, win_h),
efl_gfx_color_set(255, 255, 255, 255),
efl_gfx_stack_layer_set(-99),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, 0, 0);
efl_gfx_size_set(o, win_w, win_h);
efl_gfx_color_set(o, 255, 255, 255, 255);
efl_gfx_stack_layer_set(o, -99);
efl_gfx_visible_set(o, EINA_TRUE);
o_wallpaper = o;
o = eo_add(EVAS_TEXT_CLASS, evas);
eo_do(o, efl_text_properties_font_set("Vera-Bold", 10),
efl_text_set("EXPEDITE"),
efl_gfx_stack_layer_set(100),
efl_gfx_color_set(0, 0, 0, 100),
evas_obj_pass_events_set(1),
efl_gfx_size_get(&w, &h));
efl_text_properties_font_set(o, "Vera-Bold", 10);
efl_text_set(o, "EXPEDITE");
efl_gfx_stack_layer_set(o, 100);
efl_gfx_color_set(o, 0, 0, 0, 100);
evas_obj_pass_events_set(o, 1);
efl_gfx_size_get(o, &w, &h);
x = (win_w - w) / 2;
y = 0;
eo_do(o, efl_gfx_position_set(x, y),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, x, y);
efl_gfx_visible_set(o, EINA_TRUE);
o_title = o;
o = eo_add(EVAS_TEXT_CLASS, evas);
eo_do(o, efl_text_properties_font_set("Vera", 9),
efl_text_set("LEFT/RIGHT - select, ENTER - select, ESCAPE - exit."),
efl_gfx_stack_layer_set(100),
efl_gfx_color_set(0, 0, 0, 60),
evas_obj_pass_events_set(1),
efl_gfx_size_get(&w, NULL));
efl_text_properties_font_set(o, "Vera", 9);
efl_text_set(o, "LEFT/RIGHT - select, ENTER - select, ESCAPE - exit.");
efl_gfx_stack_layer_set(o, 100);
efl_gfx_color_set(o, 0, 0, 0, 60);
evas_obj_pass_events_set(o, 1);
efl_gfx_size_get(o, &w, NULL);
x = (win_w - w) / 2;
y = h + 2;
eo_do(o, efl_gfx_position_set(x, y),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, x, y);
efl_gfx_visible_set(o, EINA_TRUE);
o_byline = o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
eo_do(o, efl_gfx_position_set((win_w - 120) / 2, ((win_h - 160) / 2)),
efl_file_set(build_path("e-logo.png"), NULL),
efl_gfx_fill_set(0, 0, 120, 160),
efl_gfx_size_set(120, 160),
efl_gfx_stack_layer_set(-98),
efl_gfx_color_set(255, 255, 255, 255),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, (win_w - 120) / 2, ((win_h - 160) / 2));
efl_file_set(o, build_path("e-logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_stack_layer_set(o, -98);
efl_gfx_color_set(o, 255, 255, 255, 255);
efl_gfx_visible_set(o, EINA_TRUE);
o_menu_logo = o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
eo_do(o, efl_gfx_position_set(win_w - 128, - 128),
efl_gfx_fill_set(0, 0, 256, 256),
efl_gfx_size_set(256, 256),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o, win_w - 128, - 128);
efl_gfx_fill_set(o, 0, 0, 256, 256);
efl_gfx_size_set(o, 256, 256);
efl_gfx_visible_set(o, EINA_TRUE);
o_menu_icon = o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
eo_do(o, efl_gfx_position_set(0, 0),
efl_file_set(build_path("icon_sel.png"), NULL),
efl_gfx_size_set(48, 48),
efl_gfx_fill_set(0, 0, 48, 48));
efl_gfx_position_set(o, 0, 0);
efl_file_set(o, build_path("icon_sel.png"), NULL);
efl_gfx_size_set(o, 48, 48);
efl_gfx_fill_set(o, 0, 0, 48, 48);
o_menu_icon_sel = o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
eo_do(o, efl_gfx_position_set(0, 0),
efl_file_set(build_path("text_sel.png"), NULL),
efl_gfx_size_set(96, 32),
efl_gfx_fill_set(0, 0, 96, 32),
evas_obj_image_border_set(7, 7, 7, 7));
efl_gfx_position_set(o, 0, 0);
efl_file_set(o, build_path("text_sel.png"), NULL);
efl_gfx_size_set(o, 96, 32);
efl_gfx_fill_set(o, 0, 0, 96, 32);
evas_obj_image_border_set(o, 7, 7, 7, 7);
o_menu_text_sel = o;
o = eo_add(EVAS_TEXT_CLASS, evas);
eo_do(o, efl_text_properties_font_set("Vera", 10),
efl_text_set(""),
efl_gfx_color_set(0, 0, 0, 100),
evas_obj_pass_events_set(1),
efl_gfx_size_get(&w, &h));
efl_text_properties_font_set(o, "Vera", 10);
efl_text_set(o, "");
efl_gfx_color_set(o, 0, 0, 0, 100);
evas_obj_pass_events_set(o, 1);
efl_gfx_size_get(o, &w, &h);
x = (win_w - w) / 2;
y = (win_h - h) / 2;
eo_do(o, efl_gfx_position_set(x, y));
efl_gfx_position_set(o, x, y);
o_menu_title = o;
_ui_menu_item_full_add(EINA_FALSE, "e.png", "About", about_start);
@ -512,8 +512,8 @@ ui_loop(void *data EINA_UNUSED)
static double pt = 0.0;
double t, t2;
eo_do(o_bg, efl_gfx_size_set(win_w, win_h));
eo_do(o_wallpaper, efl_gfx_size_set(win_w, win_h));
efl_gfx_size_set(o_bg, win_w, win_h);
efl_gfx_size_set(o_wallpaper, win_w, win_h);
if (loop_func)
{
@ -569,21 +569,21 @@ ui_loop(void *data EINA_UNUSED)
Evas_Object *o;
o = mi->o_icon;
eo_do(o_menu_logo, efl_gfx_size_get(&w, &h));
efl_gfx_size_get(o_menu_logo, &w, &h);
len = ((w * 3) + 10) / 4;
eo_do(o, efl_gfx_size_get(&w, &h));
efl_gfx_size_get(o, &w, &h);
x = (win_w / 2)
+ (sin((menu_anim - (double)i) * 0.33) * len)
- (w / 2);
y = (win_h / 2)
+ (cos((menu_anim - (double)i) * 0.33) * len)
- (h / 2);
eo_do(o, efl_gfx_position_set(x, y));
efl_gfx_position_set(o, x, y);
a = menu_anim - (double)i;
if (a < 0) a = -a;
a = 255 - (30 * a);
eo_do(o, efl_gfx_color_set(a, a, a, a),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_color_set(o, a, a, a, a);
efl_gfx_visible_set(o, EINA_TRUE);
if (i == menu_sel)
{
@ -592,36 +592,36 @@ ui_loop(void *data EINA_UNUSED)
a = 255 - (255 * a);
o = o_menu_icon_sel;
eo_do(o, efl_gfx_position_set(x - ((48 - w) / 2), y - ((48 - h) / 2)),
efl_gfx_color_set(a, a, a, a));
efl_gfx_position_set(o, x - ((48 - w) / 2), y - ((48 - h) / 2));
efl_gfx_color_set(o, a, a, a, a);
o = o_menu_title;
eo_do(o, efl_gfx_color_set(a, a, a, a),
efl_text_set(mi->text),
efl_gfx_size_get(&tw, &th));
efl_gfx_color_set(o, a, a, a, a);
efl_text_set(o, mi->text);
efl_gfx_size_get(o, &tw, &th);
x = (win_w - tw) / 2;
y = (win_h / 2) + len + 48;
eo_do(o, efl_gfx_position_set(x, y));
efl_gfx_position_set(o, x, y);
o = o_menu_text_sel;
w = tw + 24;
h = 28;
x = x - 12;
y = y + ((th - h) / 2);
eo_do(o, efl_gfx_position_set(x, y),
efl_gfx_size_set(w, h),
efl_gfx_fill_set(0, 0, w, h),
efl_gfx_color_set(a, a, a, a));
efl_gfx_position_set(o, x, y);
efl_gfx_size_set(o, w, h);
efl_gfx_fill_set(o, 0, 0, w, h);
efl_gfx_color_set(o, a, a, a, a);
o = o_menu_icon;
snprintf(buf, 4096, "%s%s", data_dir, mi->icon);
eo_do(o, efl_file_set(buf, NULL),
efl_gfx_color_set(a / 2, a / 2, a / 2, a / 2));
efl_file_set(o, buf, NULL);
efl_gfx_color_set(o, a / 2, a / 2, a / 2, a / 2);
}
i++;
}
eo_do(o_menu_logo, efl_gfx_position_set((win_w - 120) / 2, ((win_h - 160) / 2)),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_position_set(o_menu_logo, (win_w - 120) / 2, ((win_h - 160) / 2));
efl_gfx_visible_set(o_menu_logo, EINA_TRUE);
_ui_menu_show(EINA_TRUE);
}
else
@ -634,10 +634,10 @@ ui_loop(void *data EINA_UNUSED)
void
ui_menu(void)
{
eo_do(o_title, efl_gfx_visible_set(EINA_TRUE));
eo_do(o_byline, efl_gfx_visible_set(EINA_TRUE),
efl_text_set
("LEFT/RIGHT - select, ENTER - select, ESCAPE - exit."));
efl_gfx_visible_set(o_title, EINA_TRUE);
efl_gfx_visible_set(o_byline, EINA_TRUE);
efl_text_set
(o_byline, "LEFT/RIGHT - select, ENTER - select, ESCAPE - exit.");
menu_active = 1;
key_func = NULL;
loop_func = NULL;

View File

@ -32,19 +32,17 @@ static void _setup(void)
vector = eo_add(EVAS_VG_CLASS, evas);
o_shapes[i] = vector;
eo_do(vector,
efl_gfx_size_set(r * 2 + stroke_w * 2, r * 2 + stroke_w * 2),
efl_gfx_position_set(0, 0),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_size_set(vector, r * 2 + stroke_w * 2, r * 2 + stroke_w * 2);
efl_gfx_position_set(vector, 0, 0);
efl_gfx_visible_set(vector, EINA_TRUE);
eo_do(vector, root = evas_obj_vg_root_node_get());
root = evas_obj_vg_root_node_get(vector);
circle = eo_add(EFL_VG_SHAPE_CLASS, root);
eo_do(circle,
efl_gfx_shape_append_circle(r + stroke_w, r + stroke_w, r),
efl_gfx_shape_stroke_width_set(stroke_w),
efl_gfx_shape_stroke_color_set(128, 0, 128, 128),
efl_gfx_shape_stroke_join_set(EFL_GFX_JOIN_ROUND));
efl_gfx_shape_append_circle(circle, r + stroke_w, r + stroke_w, r);
efl_gfx_shape_stroke_width_set(circle, stroke_w);
efl_gfx_shape_stroke_color_set(circle, 128, 0, 128, 128);
efl_gfx_shape_stroke_join_set(circle, EFL_GFX_JOIN_ROUND);
}
done = 0;
}
@ -68,7 +66,7 @@ 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)) * (w / 2);
eo_do(o_shapes[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_shapes[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -38,27 +38,24 @@ static void _setup(void)
vector = eo_add(EVAS_VG_CLASS, evas);
o_shapes[i] = vector;
eo_do(vector,
efl_gfx_size_set(w + stroke_w * 2, h + stroke_w * 2),
efl_gfx_position_set(0, 0),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2);
efl_gfx_position_set(vector, 0, 0);
efl_gfx_visible_set(vector, EINA_TRUE);
eo_do(vector, root = evas_obj_vg_root_node_get());
root = evas_obj_vg_root_node_get(vector);
gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, NULL);
eo_do(gradient,
efl_gfx_gradient_stop_set(stops, 3),
efl_gfx_gradient_spread_set(EFL_GFX_GRADIENT_SPREAD_REFLECT),
efl_gfx_gradient_linear_start_set(10, 10),
efl_gfx_gradient_linear_end_set(50, 50));
efl_gfx_gradient_stop_set(gradient, stops, 3);
efl_gfx_gradient_spread_set(gradient, EFL_GFX_GRADIENT_SPREAD_REFLECT);
efl_gfx_gradient_linear_start_set(gradient, 10, 10);
efl_gfx_gradient_linear_end_set(gradient, 50, 50);
rect = eo_add(EFL_VG_SHAPE_CLASS, root);
eo_do(rect,
efl_gfx_shape_append_rect(0 + stroke_w, 0 + stroke_w, w, h, 10, 10),
efl_vg_shape_fill_set(gradient),
efl_gfx_shape_stroke_width_set(stroke_w),
efl_gfx_shape_stroke_color_set(128, 0, 128, 128),
efl_gfx_shape_stroke_join_set(EFL_GFX_JOIN_ROUND));
efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10);
efl_vg_shape_fill_set(rect, gradient);
efl_gfx_shape_stroke_width_set(rect, stroke_w);
efl_gfx_shape_stroke_color_set(rect, 128, 0, 128, 128);
efl_gfx_shape_stroke_join_set(rect, EFL_GFX_JOIN_ROUND);
}
done = 0;
}
@ -82,7 +79,7 @@ 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)) * (w / 2);
eo_do(o_shapes[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_shapes[i], x, y);
}
FPS_STD(NAME);
}

View File

@ -32,19 +32,17 @@ static void _setup(void)
vector = eo_add(EVAS_VG_CLASS, evas);
o_shapes[i] = vector;
eo_do(vector,
efl_gfx_size_set(w + stroke_w * 2, h + stroke_w * 2),
efl_gfx_position_set(0, 0),
efl_gfx_visible_set(EINA_TRUE));
efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2);
efl_gfx_position_set(vector, 0, 0);
efl_gfx_visible_set(vector, EINA_TRUE);
eo_do(vector, root = evas_obj_vg_root_node_get());
root = evas_obj_vg_root_node_get(vector);
rect = eo_add(EFL_VG_SHAPE_CLASS, root);
eo_do(rect,
efl_gfx_shape_append_rect(0 + stroke_w, 0 + stroke_w, w, h, 10, 10),
efl_gfx_shape_stroke_width_set(stroke_w),
efl_gfx_shape_stroke_color_set(128, 0, 128, 128),
efl_gfx_shape_stroke_join_set(EFL_GFX_JOIN_ROUND));
efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10);
efl_gfx_shape_stroke_width_set(rect, stroke_w);
efl_gfx_shape_stroke_color_set(rect, 128, 0, 128, 128);
efl_gfx_shape_stroke_join_set(rect, EFL_GFX_JOIN_ROUND);
}
done = 0;
}
@ -68,7 +66,7 @@ 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)) * (w / 2);
eo_do(o_shapes[i], efl_gfx_position_set(x, y));
efl_gfx_position_set(o_shapes[i], x, y);
}
FPS_STD(NAME);
}

Some files were not shown because too many files have changed in this diff Show More