Adjust according to recent Eo4 changes.
This commit is contained in:
parent
1c72554acc
commit
088df1425e
|
@ -9,9 +9,9 @@ _setup(void)
|
||||||
Evas_Textblock_Style *st;
|
Evas_Textblock_Style *st;
|
||||||
|
|
||||||
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
|
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
|
||||||
eo_do(o, efl_gfx_position_set(10, 40),
|
efl_gfx_position_set(o, 10, 40);
|
||||||
efl_gfx_size_set(win_w - 20, win_h - 50),
|
efl_gfx_size_set(o, win_w - 20, win_h - 50);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
st = evas_textblock_style_new();
|
st = evas_textblock_style_new();
|
||||||
evas_textblock_style_set
|
evas_textblock_style_set
|
||||||
(st,
|
(st,
|
||||||
|
@ -21,10 +21,10 @@ _setup(void)
|
||||||
"p='+ font=Vera font_size=10 align=left'"
|
"p='+ font=Vera font_size=10 align=left'"
|
||||||
"/p='- \n \n'"
|
"/p='- \n \n'"
|
||||||
);
|
);
|
||||||
eo_do(o, evas_obj_textblock_style_set(st),
|
evas_obj_textblock_style_set(o, st);
|
||||||
evas_obj_textblock_clear(),
|
evas_obj_textblock_clear(o);
|
||||||
evas_obj_textblock_text_markup_set
|
evas_obj_textblock_text_markup_set
|
||||||
("<center>"
|
(o, "<center>"
|
||||||
"Enlightenment used to be a window manager project, but "
|
"Enlightenment used to be a window manager project, but "
|
||||||
"since has changed a lot to become a miniature desktop and mobile "
|
"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 "
|
"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 "
|
"DirectFB and other targets to boot. It handles high level graphic "
|
||||||
"layout descriptions that applications set up, dealing with the hard "
|
"layout descriptions that applications set up, dealing with the hard "
|
||||||
"work of doing the drawing for them."
|
"work of doing the drawing for them."
|
||||||
"</center>"
|
"</center>");
|
||||||
));
|
|
||||||
evas_textblock_style_free(st);
|
evas_textblock_style_free(st);
|
||||||
o_text = o;
|
o_text = o;
|
||||||
ui_fps(0.0);
|
ui_fps(0.0);
|
||||||
|
|
|
@ -54,7 +54,7 @@ static void _loop(double t, int f)
|
||||||
char buf[256];
|
char buf[256];
|
||||||
char *str = "padding_set({ %d });blur({%d,color=black });";
|
char *str = "padding_set({ %d });blur({%d,color=black });";
|
||||||
sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1));
|
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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ static void _loop(double t, int f)
|
||||||
char buf[256];
|
char buf[256];
|
||||||
char *str = "a = buffer({ 'rgba' }); padding_set({ %d }); blend({dst=a, color=darkblue});blur({%d,src=a});";
|
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));
|
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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("bar.png"), NULL);
|
||||||
efl_file_set(build_path("bar.png"), NULL),
|
evas_obj_image_border_set(o, 6, 6, 6, 6);
|
||||||
evas_obj_image_border_set(6, 6, 6, 6),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,11 +25,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("pan.png"), NULL);
|
||||||
efl_file_set(build_path("pan.png"), NULL),
|
efl_gfx_color_set(o, 64, 64, 64, 255);
|
||||||
efl_gfx_color_set(64, 64, 64, 255),
|
evas_obj_image_border_set(o, 3, 3, 3, 3);
|
||||||
evas_obj_image_border_set(3, 3, 3, 3),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -56,10 +55,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,15 +27,13 @@ static void _setup(void)
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160));
|
|
||||||
a = 256 - (1 << ((rnd() % 8) + 1));
|
a = 256 - (1 << ((rnd() % 8) + 1));
|
||||||
if (a < 128) a = 128;
|
if (a < 128) a = 128;
|
||||||
eo_do(o,
|
efl_gfx_color_set(o, a, a, a, a);
|
||||||
efl_gfx_color_set(a, a, a, a),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +58,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,12 +27,11 @@ static void _setup(void)
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
a = rnd()&0xff;
|
a = rnd()&0xff;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_color_set(o, a, a, a, a);
|
||||||
efl_gfx_color_set(a, a, a, a),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -57,7 +56,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,12 +30,11 @@ static void _setup(void)
|
||||||
n = rnd() % 100;
|
n = rnd() % 100;
|
||||||
w = 3 + ((n * (60 - 3)) / 100);
|
w = 3 + ((n * (60 - 3)) / 100);
|
||||||
h = 4 + ((n * (80 - 4)) / 100);
|
h = 4 + ((n * (80 - 4)) / 100);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_image_smooth_scale_set(o, 1);
|
||||||
efl_image_smooth_scale_set(1),
|
efl_gfx_size_set(o, w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o, 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -54,12 +53,12 @@ static void _loop(double t, int f)
|
||||||
Evas_Coord x, y, w, h;
|
Evas_Coord x, y, w, h;
|
||||||
for (i = 0; i < MANYNUM; i++)
|
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 = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i < (OBNUM / 2))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -36,14 +36,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -70,7 +68,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i < (OBNUM / 2))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, PACKAGE_DATA_DIR"/data/image.png", NULL);
|
||||||
efl_file_set(PACKAGE_DATA_DIR"/data/image.png", NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i < (OBNUM / 2))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i < (OBNUM / 2))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -28,7 +28,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i & 0x1)
|
if (i & 0x1)
|
||||||
{
|
{
|
||||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -36,14 +36,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -70,7 +68,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i & 0x1)
|
if (i & 0x1)
|
||||||
{
|
{
|
||||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i & 0x1)
|
if (i & 0x1)
|
||||||
{
|
{
|
||||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i & 0x1)
|
if (i & 0x1)
|
||||||
{
|
{
|
||||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -28,7 +28,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i > (OBNUM / 2))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -36,14 +36,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -70,7 +68,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i > (OBNUM / 2))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i > (OBNUM / 2))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void _setup(void)
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
if (i > (OBNUM / 2))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
|
|
||||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y));
|
|
||||||
}
|
}
|
||||||
eo_do(o,
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_image_smooth_scale_set(o, 1);
|
||||||
efl_image_smooth_scale_set(1),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_image_smooth_scale_set(o, 1);
|
||||||
efl_image_smooth_scale_set(1),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_image_smooth_scale_set(o, 1);
|
||||||
efl_image_smooth_scale_set(1),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_image_smooth_scale_set(o, 1);
|
||||||
efl_image_smooth_scale_set(1),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,9 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("frame.png"), NULL);
|
||||||
efl_file_set(build_path("frame.png"), NULL),
|
evas_obj_image_border_set(o, 8, 8, 8, 8);
|
||||||
evas_obj_image_border_set(8, 8, 8, 8),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,10 +54,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,15 +27,13 @@ static void _setup(void)
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160));
|
|
||||||
a = 256 - (1 << ((rnd() % 8) + 1));
|
a = 256 - (1 << ((rnd() % 8) + 1));
|
||||||
if (a < 128) a = 128;
|
if (a < 128) a = 128;
|
||||||
eo_do(o,
|
efl_gfx_color_set(o, a, a, a, a);
|
||||||
efl_gfx_color_set(a, a, a, a),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +58,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,14 +27,12 @@ static void _setup(void)
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160));
|
|
||||||
a = rnd()&0xff;
|
a = rnd()&0xff;
|
||||||
eo_do(o,
|
efl_gfx_color_set(o, a, a, a, a);
|
||||||
efl_gfx_color_set(a, a, a, a),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +57,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,11 +25,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("bar.png"), NULL);
|
||||||
efl_file_set(build_path("bar.png"), NULL),
|
evas_obj_image_border_set(o, 6, 6, 6, 6);
|
||||||
evas_obj_image_border_set(6, 6, 6, 6),
|
evas_obj_image_border_center_fill_set(o, EVAS_BORDER_FILL_SOLID);
|
||||||
evas_obj_image_border_center_fill_set(EVAS_BORDER_FILL_SOLID),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -56,10 +55,9 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,13 +25,12 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
evas_obj_image_border_set(o, 43, 48, 48, 83);
|
||||||
evas_obj_image_border_set(43, 48, 48, 83),
|
evas_obj_image_border_center_fill_set(o, EVAS_BORDER_FILL_SOLID);
|
||||||
evas_obj_image_border_center_fill_set(EVAS_BORDER_FILL_SOLID),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -56,7 +55,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,11 +25,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -54,7 +53,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,11 +25,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -54,7 +53,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,19 +24,17 @@ static void _setup(void)
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[0] = o;
|
o_images[0] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("im1.png"), NULL);
|
||||||
efl_file_set(build_path("im1.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[1] = o;
|
o_images[1] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("im2.png"), NULL);
|
||||||
efl_file_set(build_path("im2.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -55,7 +53,7 @@ static void _loop(double t, int f)
|
||||||
|
|
||||||
a = f & 0x1f;
|
a = f & 0x1f;
|
||||||
a = ((a << 3) | (a >> 2)) & 0xff;
|
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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,14 +26,13 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
|
||||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888);
|
||||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
|
efl_gfx_view_size_set(o, 640, 480);
|
||||||
efl_gfx_view_size_set(640, 480),
|
evas_obj_image_alpha_set(o, 0);
|
||||||
evas_obj_image_alpha_set(0),
|
efl_gfx_fill_set(o, 0, 0, 640, 480);
|
||||||
efl_gfx_fill_set(0, 0, 640, 480),
|
efl_gfx_size_set(o, 640, 480);
|
||||||
efl_gfx_size_set(640, 480),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -58,12 +57,11 @@ static void _loop(double t, int f)
|
||||||
h = 480;
|
h = 480;
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h),
|
data = evas_obj_image_data_get(o_images[i], 1);
|
||||||
data = evas_obj_image_data_get(1),
|
st = evas_obj_image_stride_get(o_images[i]);
|
||||||
st = evas_obj_image_stride_get());
|
|
||||||
st = st >> 2;
|
st = st >> 2;
|
||||||
p = data;
|
p = data;
|
||||||
for (y = 0; y < h; y++)
|
for (y = 0; y < h; y++)
|
||||||
|
@ -75,9 +73,8 @@ static void _loop(double t, int f)
|
||||||
}
|
}
|
||||||
p += (st - w);
|
p += (st - w);
|
||||||
}
|
}
|
||||||
eo_do(o_images[i],
|
evas_obj_image_data_set(o_images[i], data);
|
||||||
evas_obj_image_data_set(data),
|
evas_obj_image_data_update_add(o_images[i], 0, 0, w, h);
|
||||||
evas_obj_image_data_update_add( 0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,14 +26,13 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
|
||||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888);
|
||||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
|
efl_gfx_view_size_set(o, 640, 480);
|
||||||
efl_gfx_view_size_set(640, 480),
|
evas_obj_image_alpha_set(o, 1);
|
||||||
evas_obj_image_alpha_set(1),
|
efl_gfx_fill_set(o, 0, 0, 640, 480);
|
||||||
efl_gfx_fill_set(0, 0, 640, 480),
|
efl_gfx_size_set(o, 640, 480);
|
||||||
efl_gfx_size_set(640, 480),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -58,12 +57,11 @@ static void _loop(double t, int f)
|
||||||
h = 480;
|
h = 480;
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h),
|
data = evas_obj_image_data_get(o_images[i], 1);
|
||||||
data = evas_obj_image_data_get(1),
|
st = evas_obj_image_stride_get(o_images[i]);
|
||||||
st = evas_obj_image_stride_get());
|
|
||||||
st = st >> 2;
|
st = st >> 2;
|
||||||
p = data;
|
p = data;
|
||||||
for (y = 0; y < h; y++)
|
for (y = 0; y < h; y++)
|
||||||
|
@ -86,9 +84,8 @@ static void _loop(double t, int f)
|
||||||
}
|
}
|
||||||
p += (st - w);
|
p += (st - w);
|
||||||
}
|
}
|
||||||
eo_do(o_images[i],
|
evas_obj_image_data_set(o_images[i], data);
|
||||||
evas_obj_image_data_set(data),
|
evas_obj_image_data_update_add(o_images[i], 0, 0, w, h);
|
||||||
evas_obj_image_data_update_add( 0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,14 +29,13 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
|
||||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL);
|
||||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
|
efl_gfx_view_size_set(o, 640, 480);
|
||||||
efl_gfx_view_size_set(640, 480),
|
evas_obj_image_alpha_set(o, 0);
|
||||||
evas_obj_image_alpha_set(0),
|
efl_gfx_fill_set(o, 0, 0, 640, 480);
|
||||||
efl_gfx_fill_set(0, 0, 640, 480),
|
efl_gfx_size_set(o, 640, 480);
|
||||||
efl_gfx_size_set(640, 480),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
yp = malloc(640 * 480);
|
yp = malloc(640 * 480);
|
||||||
up = malloc(320 * 240);
|
up = malloc(320 * 240);
|
||||||
vp = malloc(320 * 240);
|
vp = malloc(320 * 240);
|
||||||
|
@ -65,7 +64,7 @@ static void _setup(void)
|
||||||
*lp = vp + (y * 320);
|
*lp = vp + (y * 320);
|
||||||
lp++;
|
lp++;
|
||||||
}
|
}
|
||||||
eo_do(o_images[i], evas_obj_image_data_set(data));
|
evas_obj_image_data_set(o_images[i], data);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -91,11 +90,10 @@ static void _loop(double t, int f)
|
||||||
h = 480;
|
h = 480;
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h),
|
evas_obj_image_data_update_add(o_images[i], 0, 0, 640, 480);
|
||||||
evas_obj_image_data_update_add( 0, 0, 640, 480));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,15 +29,14 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
|
||||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL);
|
||||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
|
efl_gfx_view_size_set(o, 640, 480);
|
||||||
efl_gfx_view_size_set(640, 480),
|
evas_obj_image_alpha_set(o, 0);
|
||||||
evas_obj_image_alpha_set(0),
|
efl_gfx_fill_set(o, 0, 0, 640, 480);
|
||||||
efl_gfx_fill_set(0, 0, 640, 480),
|
efl_gfx_size_set(o, 640, 480);
|
||||||
efl_gfx_size_set(640, 480),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
yp = malloc(640 * 480);
|
yp = malloc(640 * 480);
|
||||||
up = malloc(320 * 240);
|
up = malloc(320 * 240);
|
||||||
vp = malloc(320 * 240);
|
vp = malloc(320 * 240);
|
||||||
|
@ -66,7 +65,7 @@ static void _setup(void)
|
||||||
*lp = vp + (y * 320);
|
*lp = vp + (y * 320);
|
||||||
lp++;
|
lp++;
|
||||||
}
|
}
|
||||||
eo_do(o_images[i], evas_obj_image_data_set(data));
|
evas_obj_image_data_set(o_images[i], data);
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,14 +29,13 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
|
||||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL);
|
||||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
|
efl_gfx_view_size_set(o, 640, 480);
|
||||||
efl_gfx_view_size_set(640, 480),
|
evas_obj_image_alpha_set(o, 0);
|
||||||
evas_obj_image_alpha_set(0),
|
efl_gfx_fill_set(o, 0, 0, 640, 480);
|
||||||
efl_gfx_fill_set(0, 0, 640, 480),
|
efl_gfx_size_set(o, 640, 480);
|
||||||
efl_gfx_size_set(640, 480),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
yp = malloc(640 * 480);
|
yp = malloc(640 * 480);
|
||||||
up = malloc(320 * 240);
|
up = malloc(320 * 240);
|
||||||
vp = malloc(320 * 240);
|
vp = malloc(320 * 240);
|
||||||
|
@ -65,7 +64,7 @@ static void _setup(void)
|
||||||
*lp = vp + (y * 320);
|
*lp = vp + (y * 320);
|
||||||
lp++;
|
lp++;
|
||||||
}
|
}
|
||||||
eo_do(o_images[i], evas_obj_image_data_set(data));
|
evas_obj_image_data_set(o_images[i], data);
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,14 +29,13 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
|
||||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL);
|
||||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
|
efl_gfx_view_size_set(o, 320, 480);
|
||||||
efl_gfx_view_size_set(320, 480),
|
evas_obj_image_alpha_set(o, 0);
|
||||||
evas_obj_image_alpha_set(0),
|
efl_gfx_fill_set(o, 0, 0, 640, 480);
|
||||||
efl_gfx_fill_set(0, 0, 640, 480),
|
efl_gfx_size_set(o, 640, 480);
|
||||||
efl_gfx_size_set(640, 480),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
yp = malloc(640 * 480);
|
yp = malloc(640 * 480);
|
||||||
up = malloc(320 * 240);
|
up = malloc(320 * 240);
|
||||||
vp = malloc(320 * 240);
|
vp = malloc(320 * 240);
|
||||||
|
@ -67,9 +66,8 @@ static void _setup(void)
|
||||||
*lp = vp + (y * 320);
|
*lp = vp + (y * 320);
|
||||||
lp++;
|
lp++;
|
||||||
}
|
}
|
||||||
eo_do(o_images[i],
|
evas_obj_image_data_set(o_images[i], data);
|
||||||
evas_obj_image_data_set(data),
|
evas_obj_image_data_update_add(o_images[i], 0, 0, 320, 480);
|
||||||
evas_obj_image_data_update_add( 0, 0, 320, 480));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
|
@ -98,10 +96,9 @@ static void _loop(double t, int f)
|
||||||
h = 480;
|
h = 480;
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
|
|
||||||
w = 320 - 16 + f;
|
w = 320 - 16 + f;
|
||||||
if (w < 1) w = 1;
|
if (w < 1) w = 1;
|
||||||
|
@ -109,7 +106,7 @@ static void _loop(double t, int f)
|
||||||
|
|
||||||
w &= ~0x1;
|
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);
|
data = evas_object_image_data_get(o_images[i], 1);
|
||||||
if (data)
|
if (data)
|
||||||
{
|
{
|
||||||
|
@ -129,9 +126,8 @@ static void _loop(double t, int f)
|
||||||
*lp = vp + (y * 320);
|
*lp = vp + (y * 320);
|
||||||
lp++;
|
lp++;
|
||||||
}
|
}
|
||||||
eo_do(o_images[i],
|
evas_obj_image_data_set(o_images[i], data);
|
||||||
evas_obj_image_data_set(data),
|
evas_obj_image_data_update_add(o_images[i], 0, 0, w, 480);
|
||||||
evas_obj_image_data_update_add( 0, 0, w, 480));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -57,12 +57,11 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
c->side[i].o = o;
|
c->side[i].o = o;
|
||||||
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(buf), NULL);
|
||||||
efl_file_set(build_path(buf), NULL),
|
efl_gfx_fill_set(o, 0, 0, 256, 256);
|
||||||
efl_gfx_fill_set(0, 0, 256, 256),
|
efl_gfx_size_set(o, 256, 256);
|
||||||
efl_gfx_size_set(256, 256),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||||
POINT(0, 1, w, -h, -d, 256, 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);
|
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
|
||||||
if (evas_map_util_clockwise_get(m))
|
if (evas_map_util_clockwise_get(m))
|
||||||
{
|
{
|
||||||
eo_do(c->side[i].o,
|
evas_obj_map_enable_set(c->side[i].o, 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(c->side[i].o, m);
|
||||||
evas_obj_map_set(m),
|
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
else
|
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;
|
order[i] = i;
|
||||||
|
@ -163,9 +161,9 @@ _cube_pos(Cube *c,
|
||||||
}
|
}
|
||||||
while (!sorted);
|
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++)
|
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
|
static void
|
||||||
|
|
|
@ -57,11 +57,10 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
c->side[i].o = o;
|
c->side[i].o = o;
|
||||||
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(buf), NULL);
|
||||||
efl_file_set(build_path(buf), NULL),
|
efl_gfx_fill_set(o, 0, 0, 256, 256);
|
||||||
efl_gfx_fill_set(0, 0, 256, 256),
|
efl_gfx_size_set(o, 256, 256);
|
||||||
efl_gfx_size_set(256, 256),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||||
POINT(0, 1, w, -h, -d, 256, 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);
|
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
|
||||||
if (evas_map_util_clockwise_get(m))
|
if (evas_map_util_clockwise_get(m))
|
||||||
{
|
{
|
||||||
eo_do(c->side[i].o,
|
evas_obj_map_enable_set(c->side[i].o, 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(c->side[i].o, m);
|
||||||
evas_obj_map_set(m),
|
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
else
|
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;
|
order[i] = i;
|
||||||
|
@ -161,9 +159,9 @@ _cube_pos(Cube *c,
|
||||||
}
|
}
|
||||||
while (!sorted);
|
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++)
|
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
|
static void
|
||||||
|
|
|
@ -57,12 +57,11 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
c->side[i].o = o;
|
c->side[i].o = o;
|
||||||
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(buf), NULL);
|
||||||
efl_file_set(build_path(buf), NULL),
|
efl_gfx_fill_set(o, 0, 0, 256, 256);
|
||||||
efl_gfx_fill_set(0, 0, 256, 256),
|
efl_gfx_size_set(o, 256, 256);
|
||||||
efl_gfx_size_set(256, 256),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||||
POINT(0, 1, w, -h, -d, 256, 0);
|
POINT(0, 1, w, -h, -d, 256, 0);
|
||||||
|
@ -129,9 +128,8 @@ _cube_pos(Cube *c,
|
||||||
255, 255, 255,
|
255, 255, 255,
|
||||||
20, 20, 20);
|
20, 20, 20);
|
||||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
|
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(c->side[i].o, 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(c->side[i].o, m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
|
|
||||||
order[i] = i;
|
order[i] = i;
|
||||||
for (j = 0; j < 4; j++)
|
for (j = 0; j < 4; j++)
|
||||||
|
@ -155,9 +153,9 @@ _cube_pos(Cube *c,
|
||||||
}
|
}
|
||||||
while (!sorted);
|
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++)
|
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
|
static void
|
||||||
|
|
|
@ -57,11 +57,10 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
c->side[i].o = o;
|
c->side[i].o = o;
|
||||||
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(buf), NULL);
|
||||||
efl_file_set(build_path(buf), NULL),
|
efl_gfx_fill_set(o, 0, 0, 256, 256);
|
||||||
efl_gfx_fill_set(0, 0, 256, 256),
|
efl_gfx_size_set(o, 256, 256);
|
||||||
efl_gfx_size_set(256, 256),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||||
POINT(0, 1, w, -h, -d, 256, 0);
|
POINT(0, 1, w, -h, -d, 256, 0);
|
||||||
|
@ -127,9 +126,8 @@ _cube_pos(Cube *c,
|
||||||
255, 255, 255,
|
255, 255, 255,
|
||||||
20, 20, 20);
|
20, 20, 20);
|
||||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
|
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(c->side[i].o, 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(c->side[i].o, m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
|
|
||||||
order[i] = i;
|
order[i] = i;
|
||||||
for (j = 0; j < 4; j++)
|
for (j = 0; j < 4; j++)
|
||||||
|
@ -153,9 +151,9 @@ _cube_pos(Cube *c,
|
||||||
}
|
}
|
||||||
while (!sorted);
|
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++)
|
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
|
static void
|
||||||
|
|
|
@ -57,12 +57,11 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
c->side[i].o = o;
|
c->side[i].o = o;
|
||||||
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
|
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(buf), NULL);
|
||||||
efl_file_set(build_path(buf), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||||
POINT(0, 1, w, -h, -d, 720, 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);
|
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -360, 720);
|
||||||
if (evas_map_util_clockwise_get(m))
|
if (evas_map_util_clockwise_get(m))
|
||||||
{
|
{
|
||||||
eo_do(c->side[i].o,
|
evas_obj_map_enable_set(c->side[i].o, 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(c->side[i].o, m);
|
||||||
evas_obj_map_set(m),
|
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
else
|
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;
|
order[i] = i;
|
||||||
|
@ -163,9 +161,9 @@ _cube_pos(Cube *c,
|
||||||
}
|
}
|
||||||
while (!sorted);
|
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++)
|
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
|
static void
|
||||||
|
|
|
@ -57,12 +57,11 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
c->side[i].o = o;
|
c->side[i].o = o;
|
||||||
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
|
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(buf), NULL);
|
||||||
efl_file_set(build_path(buf), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||||
POINT(0, 1, w, -h, -d, 720, 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);
|
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -360, 720);
|
||||||
if (evas_map_util_clockwise_get(m))
|
if (evas_map_util_clockwise_get(m))
|
||||||
{
|
{
|
||||||
eo_do(c->side[i].o,
|
evas_obj_map_enable_set(c->side[i].o, 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(c->side[i].o, m);
|
||||||
evas_obj_map_set(m),
|
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
else
|
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;
|
order[i] = i;
|
||||||
|
@ -160,9 +158,9 @@ _cube_pos(Cube *c,
|
||||||
}
|
}
|
||||||
while (!sorted);
|
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++)
|
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
|
static void
|
||||||
|
|
|
@ -32,22 +32,20 @@ static void _setup(void)
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
|
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(buf), NULL);
|
||||||
efl_file_set(build_path(buf), NULL),
|
efl_gfx_fill_set(o, 0, 0, 256, 256);
|
||||||
efl_gfx_fill_set(0, 0, 256, 256),
|
efl_gfx_size_set(o, 256, 256);
|
||||||
efl_gfx_size_set(256, 256),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_reflec[i] = o;
|
o_reflec[i] = o;
|
||||||
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
|
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(buf), NULL);
|
||||||
efl_file_set(build_path(buf), NULL),
|
efl_gfx_fill_set(o, 0, 0, 256, 256);
|
||||||
efl_gfx_fill_set(0, 0, 256, 256),
|
efl_gfx_size_set(o, 256, 256);
|
||||||
efl_gfx_size_set(256, 256),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -130,13 +128,13 @@ static void _loop(double t, int f)
|
||||||
|
|
||||||
if (c <= 0)
|
if (c <= 0)
|
||||||
{
|
{
|
||||||
eo_do(o_images[i], efl_gfx_stack_raise());
|
efl_gfx_stack_raise(o_images[i]);
|
||||||
eo_do(o_reflec[i], efl_gfx_stack_raise());
|
efl_gfx_stack_raise(o_reflec[i]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
eo_do(o_images[i], efl_gfx_stack_lower());
|
efl_gfx_stack_lower(o_images[i]);
|
||||||
eo_do(o_reflec[i], efl_gfx_stack_lower());
|
efl_gfx_stack_lower(o_reflec[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
evas_map_point_coord_set (m, 0, x, y, -z);
|
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);
|
x + (w / 2), y + (h / 2), 0);
|
||||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
|
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
|
|
||||||
evas_map_point_coord_set (m, 0, x, yy, -z);
|
evas_map_point_coord_set (m, 0, x, yy, -z);
|
||||||
evas_map_point_image_uv_set(m, 0, 0, 256);
|
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);
|
x + (w / 2), y + (h / 2), 0);
|
||||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
|
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
|
||||||
|
|
||||||
eo_do(o_reflec[i],
|
evas_obj_map_enable_set(o_reflec[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_reflec[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
|
|
|
@ -26,12 +26,11 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,12 +26,11 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,11 +26,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,11 +26,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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_point_color_set(m, 3, 0, 0, 0, 0);
|
||||||
|
|
||||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,12 +26,11 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,12 +26,11 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,11 +26,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,11 +26,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,12 +26,11 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,12 +26,11 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,10 +26,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL),
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
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_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_set(m));
|
evas_obj_map_set(o_images[i], m);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,11 +26,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
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));
|
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,21 +25,19 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i + 1] = o;
|
o_images[i + 1] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
eo_do(o_images[i], evas_obj_clip_set(o));
|
evas_obj_clip_set(o_images[i], o);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -64,8 +62,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
||||||
eo_do(o_images[i + 1], efl_gfx_position_set(x, y));
|
efl_gfx_position_set(o_images[i + 1], x, y);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,25 +23,23 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-mask.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
|
||||||
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < 1; i++)
|
for (i = 0; i < 1; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("texture.png"), NULL);
|
||||||
efl_file_set(build_path("texture.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, win_w * 4, win_h * 4);
|
||||||
efl_gfx_fill_set(0, 0, win_w * 4, win_h * 4),
|
efl_gfx_size_set(o, win_w * 4, win_h * 4);
|
||||||
efl_gfx_size_set(win_w * 4, win_h * 4),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -72,9 +70,8 @@ static void _loop(double t, int f)
|
||||||
win_w * 4, win_h * 4, 0);
|
win_w * 4, win_h * 4, 0);
|
||||||
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
|
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
|
||||||
|
|
||||||
eo_do(o_images[i],
|
evas_obj_map_enable_set(o_images[i], 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_images[i], m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,25 +23,23 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-mask.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
|
||||||
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < OBNUM; i++)
|
for (i = 0; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +66,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
if (!m) m = evas_map_new(4);
|
||||||
evas_map_util_points_populate_from_geometry(m,
|
evas_map_util_points_populate_from_geometry(m,
|
||||||
|
@ -77,9 +75,8 @@ static void _loop(double t, int f)
|
||||||
720, 420, 0);
|
720, 420, 0);
|
||||||
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
|
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
|
||||||
|
|
||||||
eo_do(o_mask,
|
evas_obj_map_enable_set(o_mask, 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_mask, m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,26 +23,24 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-mask.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
|
||||||
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < OBNUM; i++)
|
for (i = 0; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_image_smooth_scale_set(o, 1);
|
||||||
efl_image_smooth_scale_set(1),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -71,10 +69,9 @@ static void _loop(double t, int f)
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
|
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,26 +23,24 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-mask.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
|
||||||
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < OBNUM; i++)
|
for (i = 0; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_image_smooth_scale_set(o, 0);
|
||||||
efl_image_smooth_scale_set(0),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -71,10 +69,9 @@ static void _loop(double t, int f)
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
|
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,21 +25,19 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("image.png"), NULL);
|
||||||
efl_file_set(build_path("image.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i + 1] = o;
|
o_images[i + 1] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-2.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-2.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
eo_do(o_images[i], evas_obj_clip_set(o));
|
evas_obj_clip_set(o_images[i], o);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -64,8 +62,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
||||||
eo_do(o_images[i + 1], efl_gfx_position_set(x, y));
|
efl_gfx_position_set(o_images[i + 1], x, y);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,21 +25,19 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-2.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-2.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i + 1] = o;
|
o_images[i + 1] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
eo_do(o_images[i], evas_obj_clip_set(o));
|
evas_obj_clip_set(o_images[i], o);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -64,8 +62,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
||||||
eo_do(o_images[i + 1], efl_gfx_position_set(x, y));
|
efl_gfx_position_set(o_images[i + 1], x, y);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,25 +23,23 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-mask.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
|
||||||
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < OBNUM; i++)
|
for (i = 0; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +65,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,25 +23,23 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-2.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-2.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_position_set(o, (win_w - 120) / 2, (win_h - 160) / 2);
|
||||||
efl_gfx_position_set((win_w - 120) / 2, (win_h - 160) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < OBNUM; i++)
|
for (i = 0; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +65,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,25 +23,23 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-mask.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
|
||||||
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < OBNUM; i++)
|
for (i = 0; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120 / 2, 160 / 2);
|
||||||
efl_gfx_fill_set(0, 0, 120 / 2, 160 / 2),
|
efl_gfx_size_set(o, 120 / 2, 160 / 2);
|
||||||
efl_gfx_size_set(120 / 2, 160 / 2),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +65,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,25 +23,23 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-2.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-2.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_position_set(o, (win_w - 120) / 2, (win_h - 160) / 2);
|
||||||
efl_gfx_position_set((win_w - 120) / 2, (win_h - 160) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < OBNUM; i++)
|
for (i = 0; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -67,14 +65,13 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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))));
|
w = 10 + (110 + (110 * sin((double)(f) / (14.3 * SLOW))));
|
||||||
h = 10 + (150 + (150 * sin((double)(f) / (21.7 * SLOW))));
|
h = 10 + (150 + (150 * sin((double)(f) / (21.7 * SLOW))));
|
||||||
eo_do(o_mask,
|
efl_gfx_fill_set(o_mask, 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h),
|
efl_gfx_size_set(o_mask, w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_position_set(o_mask, (win_w - w) / 2, (win_h - h) / 2);
|
||||||
efl_gfx_position_set((win_w - w) / 2, (win_h - h) / 2));
|
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,25 +23,23 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-mask.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
|
||||||
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < 1; i++)
|
for (i = 0; i < 1; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("texture.png"), NULL);
|
||||||
efl_file_set(build_path("texture.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 500, 444);
|
||||||
efl_gfx_fill_set(0, 0, 500, 444),
|
efl_gfx_size_set(o, win_w * 4, win_h * 4);
|
||||||
efl_gfx_size_set(win_w * 4, win_h * 4),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +65,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,25 +23,23 @@ static void _setup(void)
|
||||||
int i;
|
int i;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_mask = o;
|
o_mask = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
|
||||||
efl_file_set(build_path("e-logo-mask.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 720, 420);
|
||||||
efl_gfx_fill_set(0, 0, 720, 420),
|
efl_gfx_size_set(o, 720, 420);
|
||||||
efl_gfx_size_set(720, 420),
|
efl_gfx_position_set(o, (win_w - 720) / 2, (win_h - 420) / 2);
|
||||||
efl_gfx_position_set((win_w - 720) / 2, (win_h - 420) / 2),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
for (i = 0; i < 1; i++)
|
for (i = 0; i < 1; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS,evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("texture.png"), NULL);
|
||||||
efl_file_set(build_path("texture.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 500, 444);
|
||||||
efl_gfx_fill_set(0, 0, 500, 444),
|
efl_gfx_size_set(o, win_w * 4, win_h * 4);
|
||||||
efl_gfx_size_set(win_w * 4, win_h * 4),
|
evas_obj_clip_set(o, o_mask);
|
||||||
evas_obj_clip_set(o_mask),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +66,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 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);
|
if (!m) m = evas_map_new(4);
|
||||||
|
|
||||||
|
@ -78,9 +76,8 @@ static void _loop(double t, int f)
|
||||||
720, 420, 0);
|
720, 420, 0);
|
||||||
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
|
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
|
||||||
|
|
||||||
eo_do(o_mask,
|
evas_obj_map_enable_set(o_mask, 1);
|
||||||
evas_obj_map_enable_set(1),
|
evas_obj_map_set(o_mask, m);
|
||||||
evas_obj_map_set(m));
|
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,10 +26,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o, efl_file_set(build_path("tp.png"), NULL),
|
efl_file_set(o, build_path("tp.png"), NULL);
|
||||||
efl_gfx_fill_set(0, 0, 640, 480),
|
efl_gfx_fill_set(o, 0, 0, 640, 480);
|
||||||
efl_gfx_size_set(640, 480),
|
efl_gfx_size_set(o, 640, 480);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -54,9 +54,9 @@ static void _loop(double t, int f)
|
||||||
h *= (f / 100.0) * 4.0;
|
h *= (f / 100.0) * 4.0;
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
eo_do(o_images[i], efl_gfx_position_set(x, y),
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
efl_gfx_fill_set(o_images[i], 0, 0, w, h);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,13 +32,9 @@ static void _setup(void)
|
||||||
r = ((rnd()&0xff) * a) / 255;
|
r = ((rnd()&0xff) * a) / 255;
|
||||||
g = ((rnd()&0xff) * a) / 255;
|
g = ((rnd()&0xff) * a) / 255;
|
||||||
b = ((rnd()&0xff) * a) / 255;
|
b = ((rnd()&0xff) * a) / 255;
|
||||||
eo_do(o,
|
efl_gfx_color_set(o, r, g, b, a);
|
||||||
efl_gfx_color_set(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));
|
||||||
evas_obj_line_xy_set(((win_w / 2) * (rnd()&0xff)) / 255,
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
((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));
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -91,11 +87,11 @@ static void _loop(double t, int f)
|
||||||
for (i = 0; i < OBNUM; i++)
|
for (i = 0; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
o = o_images[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(&ox1, &oy1, i);
|
||||||
_rotate_point(&ox2, &oy2, 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,43 +20,43 @@ static void
|
||||||
poly(Evas_Object *o, int type, Evas_Coord x, Evas_Coord y)
|
poly(Evas_Object *o, int type, Evas_Coord x, Evas_Coord y)
|
||||||
{
|
{
|
||||||
if (o)
|
if (o)
|
||||||
eo_do(o, evas_obj_polygon_points_clear());
|
evas_obj_polygon_points_clear(o);
|
||||||
switch (type % 4)
|
switch (type % 4)
|
||||||
{
|
{
|
||||||
case 0: /* triangle */
|
case 0: /* triangle */
|
||||||
if (o)
|
if (o)
|
||||||
eo_do(o, evas_obj_polygon_point_add(x + 50 , y + 0),
|
evas_obj_polygon_point_add(o, x + 50, y + 0);
|
||||||
evas_obj_polygon_point_add(x + 100, y + 100),
|
evas_obj_polygon_point_add(o, x + 100, y + 100);
|
||||||
evas_obj_polygon_point_add(x + 0 , y + 100));
|
evas_obj_polygon_point_add(o, x + 0, y + 100);
|
||||||
break;
|
break;
|
||||||
case 1: /* square */
|
case 1: /* square */
|
||||||
if (o)
|
if (o)
|
||||||
eo_do(o, evas_obj_polygon_point_add(x + 0 , y + 0),
|
evas_obj_polygon_point_add(o, x + 0, y + 0);
|
||||||
evas_obj_polygon_point_add(x + 100, y + 0),
|
evas_obj_polygon_point_add(o, x + 100, y + 0);
|
||||||
evas_obj_polygon_point_add(x + 100, y + 100),
|
evas_obj_polygon_point_add(o, x + 100, y + 100);
|
||||||
evas_obj_polygon_point_add(x + 0 , y + 100));
|
evas_obj_polygon_point_add(o, x + 0, y + 100);
|
||||||
break;
|
break;
|
||||||
case 2: /* hex */
|
case 2: /* hex */
|
||||||
if (o)
|
if (o)
|
||||||
eo_do(o, evas_obj_polygon_point_add(x + 50 , y + 0),
|
evas_obj_polygon_point_add(o, x + 50, y + 0);
|
||||||
evas_obj_polygon_point_add(x + 100, y + 30),
|
evas_obj_polygon_point_add(o, x + 100, y + 30);
|
||||||
evas_obj_polygon_point_add(x + 100, y + 70),
|
evas_obj_polygon_point_add(o, x + 100, y + 70);
|
||||||
evas_obj_polygon_point_add(x + 50 , y + 100),
|
evas_obj_polygon_point_add(o, x + 50, y + 100);
|
||||||
evas_obj_polygon_point_add(x + 0 , y + 70),
|
evas_obj_polygon_point_add(o, x + 0, y + 70);
|
||||||
evas_obj_polygon_point_add(x + 0 , y + 30));
|
evas_obj_polygon_point_add(o, x + 0, y + 30);
|
||||||
break;
|
break;
|
||||||
case 3: /* star */
|
case 3: /* star */
|
||||||
if (o)
|
if (o)
|
||||||
eo_do(o, evas_obj_polygon_point_add(x + 50 , y + 0),
|
evas_obj_polygon_point_add(o, x + 50, y + 0);
|
||||||
evas_obj_polygon_point_add(x + 60 , y + 40),
|
evas_obj_polygon_point_add(o, x + 60, y + 40);
|
||||||
evas_obj_polygon_point_add(x + 90 , y + 30),
|
evas_obj_polygon_point_add(o, x + 90, y + 30);
|
||||||
evas_obj_polygon_point_add(x + 70 , y + 60),
|
evas_obj_polygon_point_add(o, x + 70, y + 60);
|
||||||
evas_obj_polygon_point_add(x + 90 , y + 100),
|
evas_obj_polygon_point_add(o, x + 90, y + 100);
|
||||||
evas_obj_polygon_point_add(x + 50 , y + 70),
|
evas_obj_polygon_point_add(o, x + 50, y + 70);
|
||||||
evas_obj_polygon_point_add(x + 10 , y + 100),
|
evas_obj_polygon_point_add(o, x + 10, y + 100);
|
||||||
evas_obj_polygon_point_add(x + 30 , y + 60),
|
evas_obj_polygon_point_add(o, x + 30, y + 60);
|
||||||
evas_obj_polygon_point_add(x + 10 , y + 30),
|
evas_obj_polygon_point_add(o, x + 10, y + 30);
|
||||||
evas_obj_polygon_point_add(x + 40 , y + 40));
|
evas_obj_polygon_point_add(o, x + 40, y + 40);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -80,8 +80,8 @@ static void _setup(void)
|
||||||
g = ((rnd()&0xff) * a) / 255;
|
g = ((rnd()&0xff) * a) / 255;
|
||||||
b = ((rnd()&0xff) * a) / 255;
|
b = ((rnd()&0xff) * a) / 255;
|
||||||
if (o)
|
if (o)
|
||||||
eo_do(o, efl_gfx_color_set(r, g, b, a),
|
efl_gfx_color_set(o, r, g, b, a);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
poly(o, i, 0, 0);
|
poly(o, i, 0, 0);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
|
@ -105,13 +105,13 @@ static void _loop(double t, int f)
|
||||||
{
|
{
|
||||||
o = o_images[i];
|
o = o_images[i];
|
||||||
if (o)
|
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 = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 4);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 4);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 4);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 4);
|
||||||
if (o)
|
if (o)
|
||||||
eo_do(o, efl_gfx_position_set(x, y));
|
efl_gfx_position_set(o, x, y);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,11 +23,10 @@ static void _setup(void)
|
||||||
Evas_Object *o,*src;
|
Evas_Object *o,*src;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
eo_do(o,
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_file_set(build_path("logo.png"), NULL),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
src = o;
|
src = o;
|
||||||
o_images[0] = src;
|
o_images[0] = src;
|
||||||
|
|
||||||
|
@ -35,11 +34,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
evas_obj_image_source_set(o, src);
|
||||||
evas_obj_image_source_set(src),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_fill_set(0,0,120,160),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -64,7 +62,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,20 +27,20 @@ static void _setup(void)
|
||||||
Evas_Object *o,*src;
|
Evas_Object *o,*src;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL),
|
efl_file_set(o, build_path("logo.png"), NULL);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_position_set(-400, -300));
|
efl_gfx_position_set(o, -400, -300);
|
||||||
src = o;
|
src = o;
|
||||||
|
|
||||||
for (i = 0; i < OBNUM / 2; i++)
|
for (i = 0; i < OBNUM / 2; i++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o, evas_obj_image_source_set(src, NULL),
|
evas_obj_image_source_set(o, src, NULL);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_fill_set(0,0,120,160),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,16 +29,15 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
o_texts[i] = o;
|
o_texts[i] = o;
|
||||||
eo_do(o,
|
efl_text_properties_font_set(o, "Vera-Bold", 20);
|
||||||
efl_text_properties_font_set("Vera-Bold", 20),
|
efl_text_set(o, "This is a test string");
|
||||||
efl_text_set("This is a test string"),
|
evas_obj_text_style_set(o, st);
|
||||||
evas_obj_text_style_set(st),
|
efl_gfx_color_set(o, 255, 255, 255, 255);
|
||||||
efl_gfx_color_set(255, 255, 255, 255),
|
evas_obj_text_shadow_color_set(o, 0, 0, 0, 24);
|
||||||
evas_obj_text_shadow_color_set(0, 0, 0, 24),
|
evas_obj_text_glow_color_set(o, 100, 80, 40, 100);
|
||||||
evas_obj_text_glow_color_set(100, 80, 40, 100),
|
evas_obj_text_glow2_color_set(o, 50, 10, 5, 50);
|
||||||
evas_obj_text_glow2_color_set(50, 10, 5, 50),
|
evas_obj_text_outline_color_set(o, 0, 0, 0, 255);
|
||||||
evas_obj_text_outline_color_set(0, 0, 0, 255),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
st++;
|
st++;
|
||||||
}
|
}
|
||||||
st = i;
|
st = i;
|
||||||
|
@ -48,13 +47,12 @@ static void _setup(void)
|
||||||
s = o_texts[i % st];
|
s = o_texts[i % st];
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_texts[i] = o;
|
o_texts[i] = o;
|
||||||
eo_do(o, evas_obj_image_source_set(s));
|
evas_obj_image_source_set(o, s);
|
||||||
/* FIXME s == NULL*/
|
/* FIXME s == NULL*/
|
||||||
eo_do(s, efl_gfx_size_get(&w, &h));
|
efl_gfx_size_get(s, &w, &h);
|
||||||
eo_do(o,
|
efl_gfx_size_set(o, w, h);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o, 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
done = 0;
|
done = 0;
|
||||||
|
@ -74,12 +72,12 @@ static void _loop(double t, int f)
|
||||||
Evas_Coord x, y, w, h;
|
Evas_Coord x, y, w, h;
|
||||||
for (i = 0; i < OBNUM; i++)
|
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 = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,33 +38,30 @@ static void _setup(void)
|
||||||
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_properties_font_set(o, "Vera-Bold", 20);
|
||||||
efl_text_properties_font_set("Vera-Bold", 20),
|
efl_text_set(o, buf);
|
||||||
efl_text_set(buf),
|
efl_gfx_color_set(o, 0, 0, 0, 255);
|
||||||
efl_gfx_color_set(0, 0, 0, 255),
|
efl_gfx_size_get(o, &w, &h);
|
||||||
efl_gfx_size_get(&w, &h));
|
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
|
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
|
||||||
eo_do(o,
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
for (i = 1 ; i < OBNUM ; i ++)
|
for (i = 1 ; i < OBNUM ; i ++)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_texts[i] = o;
|
o_texts[i] = o;
|
||||||
eo_do(o,
|
evas_obj_image_source_set(o, o_texts[0]);
|
||||||
evas_obj_image_source_set(o_texts[0]));
|
efl_gfx_size_get(o_texts[0], &w, &h);
|
||||||
eo_do(o_texts[0], efl_gfx_size_get(&w, &h));
|
efl_gfx_size_set(o, w, h);
|
||||||
eo_do(o, efl_gfx_size_set(w, h),
|
efl_gfx_fill_set(o, 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h));
|
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
|
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
|
||||||
eo_do(o, efl_gfx_position_set(x, y),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
done = 0;
|
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 *))],
|
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(o_texts[0], buf);
|
||||||
efl_text_set(buf),
|
efl_gfx_size_get(o_texts[0], &w, &h);
|
||||||
efl_gfx_size_get(&w, &h));
|
|
||||||
for (i = 1; i < OBNUM; i++)
|
for (i = 1; i < OBNUM; i++)
|
||||||
{
|
{
|
||||||
eo_do(o_texts[i],
|
efl_gfx_size_set(o_texts[i], w, h);
|
||||||
efl_gfx_size_set(w,h),
|
efl_gfx_fill_set(o_texts[i], 0, 0, w, h);
|
||||||
efl_gfx_fill_set(0,0,w,h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,9 +32,8 @@ static void _setup(void)
|
||||||
r = ((rnd()&0xff) * a) / 255;
|
r = ((rnd()&0xff) * a) / 255;
|
||||||
g = ((rnd()&0xff) * a) / 255;
|
g = ((rnd()&0xff) * a) / 255;
|
||||||
b = ((rnd()&0xff) * a) / 255;
|
b = ((rnd()&0xff) * a) / 255;
|
||||||
eo_do(o,
|
efl_gfx_color_set(o, r, g, b, a);
|
||||||
efl_gfx_color_set(r, g, b, a),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -61,9 +60,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,8 @@ static void _setup(void)
|
||||||
r = ((rnd()&0xff) * a) / 255;
|
r = ((rnd()&0xff) * a) / 255;
|
||||||
g = ((rnd()&0xff) * a) / 255;
|
g = ((rnd()&0xff) * a) / 255;
|
||||||
b = ((rnd()&0xff) * a) / 255;
|
b = ((rnd()&0xff) * a) / 255;
|
||||||
eo_do(o, efl_gfx_color_set(r, g, b, a),
|
efl_gfx_color_set(o, r, g, b, a);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -63,8 +63,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 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_position_set(o_images[i], x, y);
|
||||||
efl_gfx_size_set(w, h));
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,9 +33,8 @@ static void _setup(void)
|
||||||
r = ((rnd()&0xff) * a) / 255;
|
r = ((rnd()&0xff) * a) / 255;
|
||||||
g = ((rnd()&0xff) * a) / 255;
|
g = ((rnd()&0xff) * a) / 255;
|
||||||
b = ((rnd()&0xff) * a) / 255;
|
b = ((rnd()&0xff) * a) / 255;
|
||||||
eo_do(o,
|
efl_gfx_color_set(o, r, g, b, a);
|
||||||
efl_gfx_color_set(r, g, b, a),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -62,9 +61,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,8 +36,8 @@ static void _setup(void)
|
||||||
r = ((rnd()&0xff) * a) / 255;
|
r = ((rnd()&0xff) * a) / 255;
|
||||||
g = ((rnd()&0xff) * a) / 255;
|
g = ((rnd()&0xff) * a) / 255;
|
||||||
b = ((rnd()&0xff) * a) / 255;
|
b = ((rnd()&0xff) * a) / 255;
|
||||||
eo_do(o, efl_gfx_color_set(r, g, b, a),
|
efl_gfx_color_set(o, r, g, b, a);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -64,8 +64,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 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_position_set(o_images[i], x, y);
|
||||||
efl_gfx_size_set(w, h));
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,9 +32,8 @@ static void _setup(void)
|
||||||
r = ((rnd()&0xff) * a) / 255;
|
r = ((rnd()&0xff) * a) / 255;
|
||||||
g = ((rnd()&0xff) * a) / 255;
|
g = ((rnd()&0xff) * a) / 255;
|
||||||
b = ((rnd()&0xff) * a) / 255;
|
b = ((rnd()&0xff) * a) / 255;
|
||||||
eo_do(o,
|
efl_gfx_color_set(o, r, g, b, a);
|
||||||
efl_gfx_color_set(r, g, b, a),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -61,9 +60,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_images[i],
|
efl_gfx_position_set(o_images[i], x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
efl_gfx_size_set(w, h));
|
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,8 @@ static void _setup(void)
|
||||||
r = ((rnd()&0xff) * a) / 255;
|
r = ((rnd()&0xff) * a) / 255;
|
||||||
g = ((rnd()&0xff) * a) / 255;
|
g = ((rnd()&0xff) * a) / 255;
|
||||||
b = ((rnd()&0xff) * a) / 255;
|
b = ((rnd()&0xff) * a) / 255;
|
||||||
eo_do(o, efl_gfx_color_set(r, g, b, a),
|
efl_gfx_color_set(o, r, g, b, a);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -63,8 +63,8 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
|
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 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_position_set(o_images[i], x, y);
|
||||||
efl_gfx_size_set(w, h));
|
efl_gfx_size_set(o_images[i], w, h);
|
||||||
}
|
}
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,25 +56,23 @@ static void _setup(void)
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_images[i] = o;
|
o_images[i] = o;
|
||||||
eo_do(o,
|
efl_file_set(o, build_path(icons[i % 13]), NULL);
|
||||||
efl_file_set(build_path(icons[i % 13]), NULL),
|
efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE);
|
||||||
efl_gfx_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
|
efl_gfx_size_set(o, ICON_SIZE, ICON_SIZE);
|
||||||
efl_gfx_size_set(ICON_SIZE, ICON_SIZE),
|
efl_gfx_position_set(o, x + 8, y);
|
||||||
efl_gfx_position_set(x + 8, y),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
o_texts[i] = o;
|
o_texts[i] = o;
|
||||||
eo_do(o,
|
efl_text_properties_font_set(o, "Vera-Bold", 10);
|
||||||
efl_text_properties_font_set("Vera-Bold", 10),
|
efl_text_set(o, icons[i % 13]);
|
||||||
efl_text_set(icons[i % 13]),
|
evas_obj_text_style_set(o, EVAS_TEXT_STYLE_FAR_SOFT_SHADOW);
|
||||||
evas_obj_text_style_set(EVAS_TEXT_STYLE_FAR_SOFT_SHADOW),
|
efl_gfx_color_set(o, 255, 255, 255, 255);
|
||||||
efl_gfx_color_set(255, 255, 255, 255),
|
evas_obj_text_shadow_color_set(o, 0, 0, 0, 24);
|
||||||
evas_obj_text_shadow_color_set(0, 0, 0, 24),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE),
|
efl_gfx_size_get(o, &tw, &th);
|
||||||
efl_gfx_size_get(&tw, &th));
|
|
||||||
cent = ICON_SIZE + 16 - tw / 2;
|
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;
|
x += ICON_SIZE + 16;
|
||||||
if (x > win_w)
|
if (x > win_w)
|
||||||
{
|
{
|
||||||
|
@ -89,13 +87,12 @@ static void _setup(void)
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
o_snap = o;
|
o_snap = o;
|
||||||
eo_do(o,
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE),
|
efl_gfx_position_set(o, 50, 50);
|
||||||
efl_gfx_position_set(50, 50),
|
efl_gfx_size_set(o, 200, 200);
|
||||||
efl_gfx_size_set(200, 200),
|
efl_gfx_fill_set(o, 0, 0, 200, 200);
|
||||||
efl_gfx_fill_set(0, 0, 200, 200),
|
evas_obj_image_snapshot_set(o, EINA_TRUE);
|
||||||
evas_obj_image_snapshot_set(EINA_TRUE),
|
efl_gfx_filter_program_set(o, filter, "test");
|
||||||
efl_gfx_filter_program_set(filter, "test"));
|
|
||||||
|
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -124,10 +121,10 @@ static void _loop(double t, int f)
|
||||||
y = 0 - f;
|
y = 0 - f;
|
||||||
for (i = 0; i < NUM; i++)
|
for (i = 0; i < NUM; i++)
|
||||||
{
|
{
|
||||||
eo_do(o_images[i], efl_gfx_position_set(x + 8, y));
|
efl_gfx_position_set(o_images[i], x + 8, y);
|
||||||
eo_do(o_texts[i], efl_gfx_size_get(&tw, &th));
|
efl_gfx_size_get(o_texts[i], &tw, &th);
|
||||||
cent = (ICON_SIZE + 16 - tw) / 2;
|
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;
|
x += ICON_SIZE + 16;
|
||||||
if (x > win_w)
|
if (x > win_w)
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,10 +27,10 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
o_texts[i] = o;
|
o_texts[i] = o;
|
||||||
eo_do(o, efl_text_properties_font_set("Vera-Bold", 20),
|
efl_text_properties_font_set(o, "Vera-Bold", 20);
|
||||||
efl_text_set("This is a test string"),
|
efl_text_set(o, "This is a test string");
|
||||||
efl_gfx_color_set(0, 0, 0, 255),
|
efl_gfx_color_set(o, 0, 0, 0, 255);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -49,12 +49,12 @@ static void _loop(double t, int f)
|
||||||
Evas_Coord x, y, w, h;
|
Evas_Coord x, y, w, h;
|
||||||
for (i = 0; i < OBNUM; i++)
|
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 = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,21 +34,21 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
o_texts[i] = o;
|
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.",
|
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 *))],
|
||||||
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_text_set(o, buf);
|
||||||
efl_gfx_color_set(0, 0, 0, 255),
|
efl_gfx_color_set(o, 0, 0, 0, 255);
|
||||||
efl_gfx_size_get(&w, &h));
|
efl_gfx_size_get(o, &w, &h);
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)((i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
|
y += cos((double)((i * 28)) / (43.8 * SLOW)) * (w / 2);
|
||||||
eo_do(o, efl_gfx_position_set(x, y),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
}
|
}
|
||||||
done = 0;
|
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 *))],
|
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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,16 +29,15 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
o_texts[i] = o;
|
o_texts[i] = o;
|
||||||
eo_do(o,
|
efl_text_properties_font_set(o, "Vera-Bold", 20);
|
||||||
efl_text_properties_font_set("Vera-Bold", 20),
|
efl_text_set(o, "This is a test string");
|
||||||
efl_text_set("This is a test string"),
|
evas_obj_text_style_set(o, st);
|
||||||
evas_obj_text_style_set(st),
|
efl_gfx_color_set(o, 255, 255, 255, 255);
|
||||||
efl_gfx_color_set(255, 255, 255, 255),
|
evas_obj_text_shadow_color_set(o, 0, 0, 0, 24);
|
||||||
evas_obj_text_shadow_color_set(0, 0, 0, 24),
|
evas_obj_text_glow_color_set(o, 100, 80, 40, 100);
|
||||||
evas_obj_text_glow_color_set(100, 80, 40, 100),
|
evas_obj_text_glow2_color_set(o, 50, 10, 5, 50);
|
||||||
evas_obj_text_glow2_color_set(50, 10, 5, 50),
|
evas_obj_text_outline_color_set(o, 0, 0, 0, 255);
|
||||||
evas_obj_text_outline_color_set(0, 0, 0, 255),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
st++;
|
st++;
|
||||||
if (st > EVAS_TEXT_STYLE_FAR_SOFT_SHADOW) st = EVAS_TEXT_STYLE_SHADOW;
|
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;
|
Evas_Coord x, y, w, h;
|
||||||
for (i = 0; i < OBNUM; i++)
|
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 = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,20 +36,20 @@ static void _setup(void)
|
||||||
{
|
{
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
o_texts[i] = o;
|
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.",
|
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 *))],
|
||||||
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_text_set(o, buf);
|
||||||
evas_obj_text_style_set(st),
|
evas_obj_text_style_set(o, st);
|
||||||
efl_gfx_color_set(255, 255, 255, 255),
|
efl_gfx_color_set(o, 255, 255, 255, 255);
|
||||||
evas_obj_text_shadow_color_set(0, 0, 0, 24),
|
evas_obj_text_shadow_color_set(o, 0, 0, 0, 24);
|
||||||
evas_obj_text_glow_color_set(100, 80, 40, 100),
|
evas_obj_text_glow_color_set(o, 100, 80, 40, 100);
|
||||||
evas_obj_text_glow2_color_set(50, 10, 5, 50),
|
evas_obj_text_glow2_color_set(o, 50, 10, 5, 50);
|
||||||
evas_obj_text_outline_color_set(0, 0, 0, 255),
|
evas_obj_text_outline_color_set(o, 0, 0, 0, 255);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
st++;
|
st++;
|
||||||
if (st > EVAS_TEXT_STYLE_FAR_SOFT_SHADOW) st = EVAS_TEXT_STYLE_SHADOW;
|
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;
|
Evas_Coord x, y, w, h;
|
||||||
for (i = 0; i < OBNUM; i++)
|
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 = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,11 +30,9 @@ static void _setup(void)
|
||||||
(st,
|
(st,
|
||||||
"DEFAULT='font=Sans font_size=10 color=#000000 wrap=word'"
|
"DEFAULT='font=Sans font_size=10 color=#000000 wrap=word'"
|
||||||
);
|
);
|
||||||
eo_do(o,
|
evas_obj_textblock_style_set(o, st); \
|
||||||
evas_obj_textblock_style_set(st),
|
evas_obj_textblock_clear(o); \
|
||||||
evas_obj_textblock_clear(),
|
evas_obj_textblock_text_markup_set(o, "This is a test of auto alignment in Evas<ps/>"
|
||||||
evas_obj_textblock_text_markup_set(
|
|
||||||
"This is a test of auto alignment in Evas<ps/>"
|
|
||||||
"<br/>"
|
"<br/>"
|
||||||
"This text should be left aligned<ps/>"
|
"This text should be left aligned<ps/>"
|
||||||
"\xE2\x80\x8FThis text should be right aligned<ps/>"
|
"\xE2\x80\x8FThis text should be right aligned<ps/>"
|
||||||
|
@ -48,11 +46,10 @@ static void _setup(void)
|
||||||
"זה טקסט בעברית<ps/>"
|
"זה טקסט בעברית<ps/>"
|
||||||
"<br/>"
|
"<br/>"
|
||||||
"In the next text, the paragraph should be right aligned and the<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/>"
|
"'טקסט' third, 'english' fourth and 'in' fifth, counting from right to left<ps/>"
|
||||||
"דוגמה of טקסט in english."
|
"דוגמה of טקסט in english."); \
|
||||||
),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
evas_textblock_style_free(st);
|
evas_textblock_style_free(st);
|
||||||
|
|
||||||
done = 0;
|
done = 0;
|
||||||
|
@ -70,15 +67,14 @@ static void _loop(double t, int f)
|
||||||
Evas_Coord x, y, w, h, w0, h0;
|
Evas_Coord x, y, w, h, w0, h0;
|
||||||
int i = 0;
|
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;
|
w = w0;
|
||||||
h = h0;
|
h = h0;
|
||||||
w += fabs(sin((double)(f + (i * 13)) / (31.1 * SLOW))) * (w0);
|
w += fabs(sin((double)(f + (i * 13)) / (31.1 * SLOW))) * (w0);
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
y = (win_h / 2) - (h0 / 2);
|
y = (win_h / 2) - (h0 / 2);
|
||||||
eo_do(o_text,
|
efl_gfx_position_set(o_text, x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_text, w, h);
|
||||||
efl_gfx_size_set(w, h));
|
|
||||||
|
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,14 +39,12 @@ static void _setup(void)
|
||||||
"p='+ font=Vera,Kochi font_size=10 align=left'"
|
"p='+ font=Vera,Kochi font_size=10 align=left'"
|
||||||
"/p='- \n'"
|
"/p='- \n'"
|
||||||
);
|
);
|
||||||
eo_do(o,
|
evas_obj_textblock_style_set(o, st);
|
||||||
evas_obj_textblock_style_set(st),
|
evas_obj_textblock_clear(o);
|
||||||
evas_obj_textblock_clear(),
|
evas_obj_textblock_text_markup_set(o, "<center><h1>Title</h1></center><br/>"
|
||||||
evas_obj_textblock_text_markup_set(
|
|
||||||
"<center><h1>Title</h1></center><br/>"
|
|
||||||
"<p><tab>A pragraph here <red>red text</red> and stuff.</p>"
|
"<p><tab>A pragraph here <red>red text</red> and stuff.</p>"
|
||||||
"<p>And escaping < and > as well as & as <h1>normal.</h1></p>"
|
"<p>And escaping <, and >, as well as &, as <h1>normal.</h1></p>"
|
||||||
"<p>If you want a newline use <br><br/>woo a new line!</p>"
|
"<p>If you want a newline use <, br>, <br/>woo a new line!</p>"
|
||||||
"<right>Right "
|
"<right>Right "
|
||||||
"<style=outline color=#fff outline_color=#000>aligned</> "
|
"<style=outline color=#fff outline_color=#000>aligned</> "
|
||||||
"<style=shadow shadow_color=#fff8>text</> "
|
"<style=shadow shadow_color=#fff8>text</> "
|
||||||
|
@ -73,23 +71,23 @@ static void _setup(void)
|
||||||
"<backing=off linerelsize=0%>"
|
"<backing=off linerelsize=0%>"
|
||||||
"<blockquote>"
|
"<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. "
|
"In the poison'd entrails throw. "
|
||||||
"<style=shadow shadow_color=#fff8>Toad, that under cold stone</> "
|
"<style=shadow shadow_color=#fff8>Toad, that under cold stone</> "
|
||||||
"Days and nights has thirty-one "
|
"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.</> "
|
"<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. "
|
"Fire burn, and cauldron bubble. "
|
||||||
"<style=far_shadow shadow_color=#0005>Fillet of a fenny snake,</> "
|
"<style=far_shadow shadow_color=#0005>Fillet of a fenny snake, </> "
|
||||||
"In the cauldron boil and bake; "
|
"In the cauldron boil and bake, "
|
||||||
"<style=outline_shadow color=#fff outline_color=#8228 shadow_color=#005>Eye of newt and toe of frog,</> "
|
"<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,</> "
|
"<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,</> "
|
"<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,</> "
|
"<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, "
|
"<color=#808 font_size=20>For a charm of powerful trouble, "
|
||||||
"Like a hell-broth boil and bubble. "
|
"Like a hell-broth boil and bubble. "
|
||||||
"Double, double toil and trouble;</> "
|
"Double, double toil and trouble, </> "
|
||||||
"Fire burn and cauldron bubble. "
|
"Fire burn and cauldron bubble. "
|
||||||
"Scale of dragon, tooth of wolf, "
|
"Scale of dragon, tooth of wolf, "
|
||||||
"Witches' mummy, maw and gulf "
|
"Witches' mummy, maw and gulf "
|
||||||
|
@ -104,15 +102,14 @@ static void _setup(void)
|
||||||
"Make the gruel thick and slab: "
|
"Make the gruel thick and slab: "
|
||||||
"Add thereto a tiger's chaudron, "
|
"Add thereto a tiger's chaudron, "
|
||||||
"For the ingredients of our cauldron. "
|
"For the ingredients of our cauldron. "
|
||||||
"Double, double toil and trouble; "
|
"Double, double toil and trouble, "
|
||||||
"Fire burn and cauldron bubble. "
|
"Fire burn and cauldron bubble. "
|
||||||
"Cool it with a baboon's blood, "
|
"Cool it with a baboon's blood, "
|
||||||
"Then the charm is firm and good. "
|
"Then the charm is firm and good. "
|
||||||
"Heizölrückstoßabdämpfung fløde pingüino kilómetros cœur déçu l'âme "
|
"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"
|
"plutôt naïve Louÿs rêva crapaüter Íosa Úrmhac Óighe pór Éava Ádhaim"
|
||||||
"</blockquote>"
|
"</blockquote>");
|
||||||
),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
evas_textblock_style_free(st);
|
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);
|
x += sin((double)(f + (i * 13)) / (86.7 * SLOW)) * (w0 / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2);
|
y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2);
|
||||||
eo_do(o_text,
|
efl_gfx_position_set(o_text, x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_text, w, 5000);
|
||||||
efl_gfx_size_set(w, 5000));
|
|
||||||
|
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,11 +30,9 @@ static void _setup(void)
|
||||||
(st,
|
(st,
|
||||||
"DEFAULT='font=Sans font_size=10 align=left color=#000000 wrap=word'"
|
"DEFAULT='font=Sans font_size=10 align=left color=#000000 wrap=word'"
|
||||||
);
|
);
|
||||||
eo_do(o,
|
evas_obj_textblock_style_set(o, st);
|
||||||
evas_obj_textblock_style_set(st),
|
evas_obj_textblock_clear(o);
|
||||||
evas_obj_textblock_clear(),
|
evas_obj_textblock_text_markup_set(o, "This is a test of International test rendering in Evas<br/>"
|
||||||
evas_obj_textblock_text_markup_set(
|
|
||||||
"This is a test of International test rendering in Evas<br/>"
|
|
||||||
"<br/>"
|
"<br/>"
|
||||||
"Danish: 'Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen'<br/>"
|
"Danish: 'Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen'<br/>"
|
||||||
"German: 'Heizölrückstoßabdämpfung'<br/>"
|
"German: 'Heizölrückstoßabdämpfung'<br/>"
|
||||||
|
@ -63,7 +61,7 @@ static void _setup(void)
|
||||||
"Greek: 'Γιούνικοντ'<br/>"
|
"Greek: 'Γιούνικοντ'<br/>"
|
||||||
|
|
||||||
/* also test the html entity stuff a bit */
|
/* also test the html entity stuff a bit */
|
||||||
"Greek continued: 'τυλθ'<br/>"
|
"Greek continued: '&tau, &upsilon, &lambda, &theta, '<br/>"
|
||||||
|
|
||||||
"Gujarati: 'યૂનિકોડ'<br/>"
|
"Gujarati: 'યૂનિકોડ'<br/>"
|
||||||
"Gurmukhi: 'ਯੂਨਿਕੋਡ'<br/>"
|
"Gurmukhi: 'ਯੂਨਿਕੋਡ'<br/>"
|
||||||
|
@ -81,9 +79,8 @@ static void _setup(void)
|
||||||
"Telugu: 'యూనికోడ్'<br/>"
|
"Telugu: 'యూనికోడ్'<br/>"
|
||||||
"Thai: 'ยูนืโคด'<br/>"
|
"Thai: 'ยูนืโคด'<br/>"
|
||||||
"Tibetan: 'ཨུ་ནི་ཀོཌྲ།'<br/>"
|
"Tibetan: 'ཨུ་ནི་ཀོཌྲ།'<br/>"
|
||||||
"Yiddish: 'יוניקאָד'<br/>"
|
"Yiddish: 'יוניקאָד'<br/>");
|
||||||
),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
evas_textblock_style_free(st);
|
evas_textblock_style_free(st);
|
||||||
|
|
||||||
|
@ -102,16 +99,15 @@ static void _loop(double t, int f)
|
||||||
Evas_Coord x, y, w, h, w0, h0;
|
Evas_Coord x, y, w, h, w0, h0;
|
||||||
int i = 0;
|
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;
|
w = w0;
|
||||||
h = h0;
|
h = h0;
|
||||||
x = (win_w / 2) - (w / 2);
|
x = (win_w / 2) - (w / 2);
|
||||||
x += sin((double)(f + (i * 13)) / (31.1 * SLOW)) * (w0 / (2 * 2));
|
x += sin((double)(f + (i * 13)) / (31.1 * SLOW)) * (w0 / (2 * 2));
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2));
|
y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2));
|
||||||
eo_do(o_text,
|
efl_gfx_position_set(o_text, x, y);
|
||||||
efl_gfx_position_set(x, y),
|
efl_gfx_size_set(o_text, w, h);
|
||||||
efl_gfx_size_set(w, h));
|
|
||||||
|
|
||||||
FPS_STD(NAME);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,11 +30,9 @@ static void _setup(void)
|
||||||
(st,
|
(st,
|
||||||
"DEFAULT='font=Sans font_size=10 color=#000000 wrap=word'"
|
"DEFAULT='font=Sans font_size=10 color=#000000 wrap=word'"
|
||||||
);
|
);
|
||||||
eo_do(o,
|
evas_obj_textblock_style_set(o, st); \
|
||||||
evas_obj_textblock_style_set(st),
|
evas_obj_textblock_clear(o); \
|
||||||
evas_obj_textblock_clear(),
|
evas_obj_textblock_text_markup_set(o, "This test just appends and removes text from different paragraphs, it's "
|
||||||
evas_obj_textblock_text_markup_set(
|
|
||||||
"This test just appends and removes text from different paragraphs, it's "
|
|
||||||
"not a very visual test, it's included for benchmarking purposes."
|
"not a very visual test, it's included for benchmarking purposes."
|
||||||
"<ps/>"
|
"<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."
|
"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/>"
|
"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"
|
"Graphics"
|
||||||
"<ps/>"
|
"<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/>"
|
"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_position_set(0, 0),
|
efl_gfx_size_set(o, win_w, win_h); \
|
||||||
efl_gfx_size_set(win_w, win_h),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
|
||||||
|
|
||||||
evas_textblock_style_free(st);
|
evas_textblock_style_free(st);
|
||||||
|
|
||||||
|
@ -114,7 +111,7 @@ static void _loop(double t, int f)
|
||||||
{
|
{
|
||||||
Evas_Textblock_Cursor *cur;
|
Evas_Textblock_Cursor *cur;
|
||||||
static Evas_Textblock_Cursor *cur2;
|
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_text_append(cur, "*");
|
||||||
evas_textblock_cursor_char_delete(cur);
|
evas_textblock_cursor_char_delete(cur);
|
||||||
|
|
||||||
|
@ -122,7 +119,7 @@ static void _loop(double t, int f)
|
||||||
if (!o_text) cur2 = NULL;
|
if (!o_text) cur2 = NULL;
|
||||||
if (!cur2)
|
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_last(cur2);
|
||||||
evas_textblock_cursor_paragraph_char_first(cur2);
|
evas_textblock_cursor_paragraph_char_first(cur2);
|
||||||
}
|
}
|
||||||
|
|
188
src/bin/ui.c
188
src/bin/ui.c
|
@ -220,15 +220,15 @@ static int test_item = -1;
|
||||||
static void
|
static void
|
||||||
_ui_menu_show(Eina_Bool visibility)
|
_ui_menu_show(Eina_Bool visibility)
|
||||||
{
|
{
|
||||||
eo_do(o_menu_logo, efl_gfx_visible_set(visibility));
|
efl_gfx_visible_set(o_menu_logo, visibility);
|
||||||
eo_do(o_menu_title, efl_gfx_visible_set(visibility));
|
efl_gfx_visible_set(o_menu_title, visibility);
|
||||||
eo_do(o_menu_icon, efl_gfx_visible_set(visibility));
|
efl_gfx_visible_set(o_menu_icon, visibility);
|
||||||
eo_do(o_menu_icon_sel, efl_gfx_visible_set(visibility));
|
efl_gfx_visible_set(o_menu_icon_sel, visibility);
|
||||||
/* FIXME: ask if it's ok o_menu_icon_sel2 == NULL */
|
/* FIXME: ask if it's ok o_menu_icon_sel2 == NULL */
|
||||||
eo_do(o_menu_icon_sel2, efl_gfx_visible_set(visibility));
|
efl_gfx_visible_set(o_menu_icon_sel2, visibility);
|
||||||
eo_do(o_menu_text_sel, efl_gfx_visible_set(visibility));
|
efl_gfx_visible_set(o_menu_text_sel, visibility);
|
||||||
eo_do(o_title, efl_gfx_visible_set(visibility));
|
efl_gfx_visible_set(o_title, visibility);
|
||||||
eo_do(o_byline, efl_gfx_visible_set(visibility));
|
efl_gfx_visible_set(o_byline, visibility);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -244,12 +244,12 @@ _ui_select(void)
|
||||||
Menu_Item *mi;
|
Menu_Item *mi;
|
||||||
|
|
||||||
mi = l->data;
|
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)
|
if (i == menu_sel)
|
||||||
func = mi->func;
|
func = mi->func;
|
||||||
}
|
}
|
||||||
eo_do(o_title, efl_gfx_visible_set(EINA_FALSE));
|
efl_gfx_visible_set(o_title, EINA_FALSE);
|
||||||
eo_do(o_byline, efl_gfx_visible_set(EINA_FALSE));
|
efl_gfx_visible_set(o_byline, EINA_FALSE);
|
||||||
|
|
||||||
menu_active = 0;
|
menu_active = 0;
|
||||||
if (func) func();
|
if (func) func();
|
||||||
|
@ -357,15 +357,15 @@ _ui_menu_item_full_add(Eina_Bool test,
|
||||||
|
|
||||||
mi = malloc(sizeof(Menu_Item));
|
mi = malloc(sizeof(Menu_Item));
|
||||||
mi->o_icon = eo_add(EVAS_IMAGE_CLASS, evas);
|
mi->o_icon = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
eo_do(mi->o_icon, efl_file_set(build_path(icon), NULL),
|
efl_file_set(mi->o_icon, build_path(icon), NULL);
|
||||||
efl_gfx_size_set(32, 32),
|
efl_gfx_size_set(mi->o_icon, 32, 32);
|
||||||
efl_gfx_fill_set(0, 0, 32, 32));
|
efl_gfx_fill_set(mi->o_icon, 0, 0, 32, 32);
|
||||||
mi->test = test;
|
mi->test = test;
|
||||||
mi->icon = strdup(icon);
|
mi->icon = strdup(icon);
|
||||||
mi->text = strdup(text);
|
mi->text = strdup(text);
|
||||||
mi->func = func;
|
mi->func = func;
|
||||||
menu = eina_list_append(menu, mi);
|
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)
|
#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;
|
win_h = ui_h;
|
||||||
|
|
||||||
o = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
o = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
||||||
eo_do(o, efl_gfx_position_set(0, 0),
|
efl_gfx_position_set(o, 0, 0);
|
||||||
efl_gfx_size_set(win_w, win_h),
|
efl_gfx_size_set(o, win_w, win_h);
|
||||||
efl_gfx_color_set(0, 0, 0, 0),
|
efl_gfx_color_set(o, 0, 0, 0, 0);
|
||||||
efl_gfx_stack_layer_set(1000),
|
efl_gfx_stack_layer_set(o, 1000);
|
||||||
evas_obj_focus_set(1),
|
evas_obj_focus_set(o, 1);
|
||||||
efl_gfx_visible_set(EINA_TRUE),
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
eo_event_callback_array_add(ui_callbacks(), NULL));
|
eo_event_callback_array_add(o, ui_callbacks(), NULL);
|
||||||
o_bg = o;
|
o_bg = o;
|
||||||
|
|
||||||
o = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
o = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
||||||
eo_do(o, efl_gfx_position_set(0, 0),
|
efl_gfx_position_set(o, 0, 0);
|
||||||
efl_gfx_size_set(win_w, win_h),
|
efl_gfx_size_set(o, win_w, win_h);
|
||||||
efl_gfx_color_set(255, 255, 255, 255),
|
efl_gfx_color_set(o, 255, 255, 255, 255);
|
||||||
efl_gfx_stack_layer_set(-99),
|
efl_gfx_stack_layer_set(o, -99);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
o_wallpaper = o;
|
o_wallpaper = o;
|
||||||
|
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
eo_do(o, efl_text_properties_font_set("Vera-Bold", 10),
|
efl_text_properties_font_set(o, "Vera-Bold", 10);
|
||||||
efl_text_set("EXPEDITE"),
|
efl_text_set(o, "EXPEDITE");
|
||||||
efl_gfx_stack_layer_set(100),
|
efl_gfx_stack_layer_set(o, 100);
|
||||||
efl_gfx_color_set(0, 0, 0, 100),
|
efl_gfx_color_set(o, 0, 0, 0, 100);
|
||||||
evas_obj_pass_events_set(1),
|
evas_obj_pass_events_set(o, 1);
|
||||||
efl_gfx_size_get(&w, &h));
|
efl_gfx_size_get(o, &w, &h);
|
||||||
x = (win_w - w) / 2;
|
x = (win_w - w) / 2;
|
||||||
y = 0;
|
y = 0;
|
||||||
eo_do(o, efl_gfx_position_set(x, y),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
o_title = o;
|
o_title = o;
|
||||||
|
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
eo_do(o, efl_text_properties_font_set("Vera", 9),
|
efl_text_properties_font_set(o, "Vera", 9);
|
||||||
efl_text_set("LEFT/RIGHT - select, ENTER - select, ESCAPE - exit."),
|
efl_text_set(o, "LEFT/RIGHT - select, ENTER - select, ESCAPE - exit.");
|
||||||
efl_gfx_stack_layer_set(100),
|
efl_gfx_stack_layer_set(o, 100);
|
||||||
efl_gfx_color_set(0, 0, 0, 60),
|
efl_gfx_color_set(o, 0, 0, 0, 60);
|
||||||
evas_obj_pass_events_set(1),
|
evas_obj_pass_events_set(o, 1);
|
||||||
efl_gfx_size_get(&w, NULL));
|
efl_gfx_size_get(o, &w, NULL);
|
||||||
x = (win_w - w) / 2;
|
x = (win_w - w) / 2;
|
||||||
y = h + 2;
|
y = h + 2;
|
||||||
eo_do(o, efl_gfx_position_set(x, y),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
o_byline = o;
|
o_byline = o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
eo_do(o, efl_gfx_position_set((win_w - 120) / 2, ((win_h - 160) / 2)),
|
efl_gfx_position_set(o, (win_w - 120) / 2, ((win_h - 160) / 2));
|
||||||
efl_file_set(build_path("e-logo.png"), NULL),
|
efl_file_set(o, build_path("e-logo.png"), NULL);
|
||||||
efl_gfx_fill_set(0, 0, 120, 160),
|
efl_gfx_fill_set(o, 0, 0, 120, 160);
|
||||||
efl_gfx_size_set(120, 160),
|
efl_gfx_size_set(o, 120, 160);
|
||||||
efl_gfx_stack_layer_set(-98),
|
efl_gfx_stack_layer_set(o, -98);
|
||||||
efl_gfx_color_set(255, 255, 255, 255),
|
efl_gfx_color_set(o, 255, 255, 255, 255);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
o_menu_logo = o;
|
o_menu_logo = o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
eo_do(o, efl_gfx_position_set(win_w - 128, - 128),
|
efl_gfx_position_set(o, win_w - 128, - 128);
|
||||||
efl_gfx_fill_set(0, 0, 256, 256),
|
efl_gfx_fill_set(o, 0, 0, 256, 256);
|
||||||
efl_gfx_size_set(256, 256),
|
efl_gfx_size_set(o, 256, 256);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
o_menu_icon = o;
|
o_menu_icon = o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
eo_do(o, efl_gfx_position_set(0, 0),
|
efl_gfx_position_set(o, 0, 0);
|
||||||
efl_file_set(build_path("icon_sel.png"), NULL),
|
efl_file_set(o, build_path("icon_sel.png"), NULL);
|
||||||
efl_gfx_size_set(48, 48),
|
efl_gfx_size_set(o, 48, 48);
|
||||||
efl_gfx_fill_set(0, 0, 48, 48));
|
efl_gfx_fill_set(o, 0, 0, 48, 48);
|
||||||
o_menu_icon_sel = o;
|
o_menu_icon_sel = o;
|
||||||
|
|
||||||
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
o = eo_add(EVAS_IMAGE_CLASS, evas);
|
||||||
eo_do(o, efl_gfx_position_set(0, 0),
|
efl_gfx_position_set(o, 0, 0);
|
||||||
efl_file_set(build_path("text_sel.png"), NULL),
|
efl_file_set(o, build_path("text_sel.png"), NULL);
|
||||||
efl_gfx_size_set(96, 32),
|
efl_gfx_size_set(o, 96, 32);
|
||||||
efl_gfx_fill_set(0, 0, 96, 32),
|
efl_gfx_fill_set(o, 0, 0, 96, 32);
|
||||||
evas_obj_image_border_set(7, 7, 7, 7));
|
evas_obj_image_border_set(o, 7, 7, 7, 7);
|
||||||
o_menu_text_sel = o;
|
o_menu_text_sel = o;
|
||||||
|
|
||||||
o = eo_add(EVAS_TEXT_CLASS, evas);
|
o = eo_add(EVAS_TEXT_CLASS, evas);
|
||||||
eo_do(o, efl_text_properties_font_set("Vera", 10),
|
efl_text_properties_font_set(o, "Vera", 10);
|
||||||
efl_text_set(""),
|
efl_text_set(o, "");
|
||||||
efl_gfx_color_set(0, 0, 0, 100),
|
efl_gfx_color_set(o, 0, 0, 0, 100);
|
||||||
evas_obj_pass_events_set(1),
|
evas_obj_pass_events_set(o, 1);
|
||||||
efl_gfx_size_get(&w, &h));
|
efl_gfx_size_get(o, &w, &h);
|
||||||
x = (win_w - w) / 2;
|
x = (win_w - w) / 2;
|
||||||
y = (win_h - h) / 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;
|
o_menu_title = o;
|
||||||
|
|
||||||
_ui_menu_item_full_add(EINA_FALSE, "e.png", "About", about_start);
|
_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;
|
static double pt = 0.0;
|
||||||
double t, t2;
|
double t, t2;
|
||||||
|
|
||||||
eo_do(o_bg, efl_gfx_size_set(win_w, win_h));
|
efl_gfx_size_set(o_bg, win_w, win_h);
|
||||||
eo_do(o_wallpaper, efl_gfx_size_set(win_w, win_h));
|
efl_gfx_size_set(o_wallpaper, win_w, win_h);
|
||||||
|
|
||||||
if (loop_func)
|
if (loop_func)
|
||||||
{
|
{
|
||||||
|
@ -569,21 +569,21 @@ ui_loop(void *data EINA_UNUSED)
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
|
||||||
o = mi->o_icon;
|
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;
|
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)
|
x = (win_w / 2)
|
||||||
+ (sin((menu_anim - (double)i) * 0.33) * len)
|
+ (sin((menu_anim - (double)i) * 0.33) * len)
|
||||||
- (w / 2);
|
- (w / 2);
|
||||||
y = (win_h / 2)
|
y = (win_h / 2)
|
||||||
+ (cos((menu_anim - (double)i) * 0.33) * len)
|
+ (cos((menu_anim - (double)i) * 0.33) * len)
|
||||||
- (h / 2);
|
- (h / 2);
|
||||||
eo_do(o, efl_gfx_position_set(x, y));
|
efl_gfx_position_set(o, x, y);
|
||||||
a = menu_anim - (double)i;
|
a = menu_anim - (double)i;
|
||||||
if (a < 0) a = -a;
|
if (a < 0) a = -a;
|
||||||
a = 255 - (30 * a);
|
a = 255 - (30 * a);
|
||||||
eo_do(o, efl_gfx_color_set(a, a, a, a),
|
efl_gfx_color_set(o, a, a, a, a);
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o, EINA_TRUE);
|
||||||
|
|
||||||
if (i == menu_sel)
|
if (i == menu_sel)
|
||||||
{
|
{
|
||||||
|
@ -592,36 +592,36 @@ ui_loop(void *data EINA_UNUSED)
|
||||||
a = 255 - (255 * a);
|
a = 255 - (255 * a);
|
||||||
|
|
||||||
o = o_menu_icon_sel;
|
o = o_menu_icon_sel;
|
||||||
eo_do(o, efl_gfx_position_set(x - ((48 - w) / 2), y - ((48 - h) / 2)),
|
efl_gfx_position_set(o, x - ((48 - w) / 2), y - ((48 - h) / 2));
|
||||||
efl_gfx_color_set(a, a, a, a));
|
efl_gfx_color_set(o, a, a, a, a);
|
||||||
|
|
||||||
o = o_menu_title;
|
o = o_menu_title;
|
||||||
eo_do(o, efl_gfx_color_set(a, a, a, a),
|
efl_gfx_color_set(o, a, a, a, a);
|
||||||
efl_text_set(mi->text),
|
efl_text_set(o, mi->text);
|
||||||
efl_gfx_size_get(&tw, &th));
|
efl_gfx_size_get(o, &tw, &th);
|
||||||
x = (win_w - tw) / 2;
|
x = (win_w - tw) / 2;
|
||||||
y = (win_h / 2) + len + 48;
|
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;
|
o = o_menu_text_sel;
|
||||||
w = tw + 24;
|
w = tw + 24;
|
||||||
h = 28;
|
h = 28;
|
||||||
x = x - 12;
|
x = x - 12;
|
||||||
y = y + ((th - h) / 2);
|
y = y + ((th - h) / 2);
|
||||||
eo_do(o, efl_gfx_position_set(x, y),
|
efl_gfx_position_set(o, x, y);
|
||||||
efl_gfx_size_set(w, h),
|
efl_gfx_size_set(o, w, h);
|
||||||
efl_gfx_fill_set(0, 0, w, h),
|
efl_gfx_fill_set(o, 0, 0, w, h);
|
||||||
efl_gfx_color_set(a, a, a, a));
|
efl_gfx_color_set(o, a, a, a, a);
|
||||||
|
|
||||||
o = o_menu_icon;
|
o = o_menu_icon;
|
||||||
snprintf(buf, 4096, "%s%s", data_dir, mi->icon);
|
snprintf(buf, 4096, "%s%s", data_dir, mi->icon);
|
||||||
eo_do(o, efl_file_set(buf, NULL),
|
efl_file_set(o, buf, NULL);
|
||||||
efl_gfx_color_set(a / 2, a / 2, a / 2, a / 2));
|
efl_gfx_color_set(o, a / 2, a / 2, a / 2, a / 2);
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
eo_do(o_menu_logo, efl_gfx_position_set((win_w - 120) / 2, ((win_h - 160) / 2)),
|
efl_gfx_position_set(o_menu_logo, (win_w - 120) / 2, ((win_h - 160) / 2));
|
||||||
efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o_menu_logo, EINA_TRUE);
|
||||||
_ui_menu_show(EINA_TRUE);
|
_ui_menu_show(EINA_TRUE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -634,10 +634,10 @@ ui_loop(void *data EINA_UNUSED)
|
||||||
void
|
void
|
||||||
ui_menu(void)
|
ui_menu(void)
|
||||||
{
|
{
|
||||||
eo_do(o_title, efl_gfx_visible_set(EINA_TRUE));
|
efl_gfx_visible_set(o_title, EINA_TRUE);
|
||||||
eo_do(o_byline, efl_gfx_visible_set(EINA_TRUE),
|
efl_gfx_visible_set(o_byline, EINA_TRUE);
|
||||||
efl_text_set
|
efl_text_set
|
||||||
("LEFT/RIGHT - select, ENTER - select, ESCAPE - exit."));
|
(o_byline, "LEFT/RIGHT - select, ENTER - select, ESCAPE - exit.");
|
||||||
menu_active = 1;
|
menu_active = 1;
|
||||||
key_func = NULL;
|
key_func = NULL;
|
||||||
loop_func = NULL;
|
loop_func = NULL;
|
||||||
|
|
|
@ -32,19 +32,17 @@ static void _setup(void)
|
||||||
|
|
||||||
vector = eo_add(EVAS_VG_CLASS, evas);
|
vector = eo_add(EVAS_VG_CLASS, evas);
|
||||||
o_shapes[i] = vector;
|
o_shapes[i] = vector;
|
||||||
eo_do(vector,
|
efl_gfx_size_set(vector, r * 2 + stroke_w * 2, r * 2 + stroke_w * 2);
|
||||||
efl_gfx_size_set(r * 2 + stroke_w * 2, r * 2 + stroke_w * 2),
|
efl_gfx_position_set(vector, 0, 0);
|
||||||
efl_gfx_position_set(0, 0),
|
efl_gfx_visible_set(vector, EINA_TRUE);
|
||||||
efl_gfx_visible_set(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);
|
circle = eo_add(EFL_VG_SHAPE_CLASS, root);
|
||||||
eo_do(circle,
|
efl_gfx_shape_append_circle(circle, r + stroke_w, r + stroke_w, r);
|
||||||
efl_gfx_shape_append_circle(r + stroke_w, r + stroke_w, r),
|
efl_gfx_shape_stroke_width_set(circle, stroke_w);
|
||||||
efl_gfx_shape_stroke_width_set(stroke_w),
|
efl_gfx_shape_stroke_color_set(circle, 128, 0, 128, 128);
|
||||||
efl_gfx_shape_stroke_color_set(128, 0, 128, 128),
|
efl_gfx_shape_stroke_join_set(circle, EFL_GFX_JOIN_ROUND);
|
||||||
efl_gfx_shape_stroke_join_set(EFL_GFX_JOIN_ROUND));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +66,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,27 +38,24 @@ static void _setup(void)
|
||||||
|
|
||||||
vector = eo_add(EVAS_VG_CLASS, evas);
|
vector = eo_add(EVAS_VG_CLASS, evas);
|
||||||
o_shapes[i] = vector;
|
o_shapes[i] = vector;
|
||||||
eo_do(vector,
|
efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2);
|
||||||
efl_gfx_size_set(w + stroke_w * 2, h + stroke_w * 2),
|
efl_gfx_position_set(vector, 0, 0);
|
||||||
efl_gfx_position_set(0, 0),
|
efl_gfx_visible_set(vector, EINA_TRUE);
|
||||||
efl_gfx_visible_set(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);
|
gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, NULL);
|
||||||
eo_do(gradient,
|
efl_gfx_gradient_stop_set(gradient, stops, 3);
|
||||||
efl_gfx_gradient_stop_set(stops, 3),
|
efl_gfx_gradient_spread_set(gradient, EFL_GFX_GRADIENT_SPREAD_REFLECT);
|
||||||
efl_gfx_gradient_spread_set(EFL_GFX_GRADIENT_SPREAD_REFLECT),
|
efl_gfx_gradient_linear_start_set(gradient, 10, 10);
|
||||||
efl_gfx_gradient_linear_start_set(10, 10),
|
efl_gfx_gradient_linear_end_set(gradient, 50, 50);
|
||||||
efl_gfx_gradient_linear_end_set(50, 50));
|
|
||||||
|
|
||||||
rect = eo_add(EFL_VG_SHAPE_CLASS, root);
|
rect = eo_add(EFL_VG_SHAPE_CLASS, root);
|
||||||
eo_do(rect,
|
efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10);
|
||||||
efl_gfx_shape_append_rect(0 + stroke_w, 0 + stroke_w, w, h, 10, 10),
|
efl_vg_shape_fill_set(rect, gradient);
|
||||||
efl_vg_shape_fill_set(gradient),
|
efl_gfx_shape_stroke_width_set(rect, stroke_w);
|
||||||
efl_gfx_shape_stroke_width_set(stroke_w),
|
efl_gfx_shape_stroke_color_set(rect, 128, 0, 128, 128);
|
||||||
efl_gfx_shape_stroke_color_set(128, 0, 128, 128),
|
efl_gfx_shape_stroke_join_set(rect, EFL_GFX_JOIN_ROUND);
|
||||||
efl_gfx_shape_stroke_join_set(EFL_GFX_JOIN_ROUND));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +79,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,19 +32,17 @@ static void _setup(void)
|
||||||
|
|
||||||
vector = eo_add(EVAS_VG_CLASS, evas);
|
vector = eo_add(EVAS_VG_CLASS, evas);
|
||||||
o_shapes[i] = vector;
|
o_shapes[i] = vector;
|
||||||
eo_do(vector,
|
efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2);
|
||||||
efl_gfx_size_set(w + stroke_w * 2, h + stroke_w * 2),
|
efl_gfx_position_set(vector, 0, 0);
|
||||||
efl_gfx_position_set(0, 0),
|
efl_gfx_visible_set(vector, EINA_TRUE);
|
||||||
efl_gfx_visible_set(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);
|
rect = eo_add(EFL_VG_SHAPE_CLASS, root);
|
||||||
eo_do(rect,
|
efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10);
|
||||||
efl_gfx_shape_append_rect(0 + stroke_w, 0 + stroke_w, w, h, 10, 10),
|
efl_gfx_shape_stroke_width_set(rect, stroke_w);
|
||||||
efl_gfx_shape_stroke_width_set(stroke_w),
|
efl_gfx_shape_stroke_color_set(rect, 128, 0, 128, 128);
|
||||||
efl_gfx_shape_stroke_color_set(128, 0, 128, 128),
|
efl_gfx_shape_stroke_join_set(rect, EFL_GFX_JOIN_ROUND);
|
||||||
efl_gfx_shape_stroke_join_set(EFL_GFX_JOIN_ROUND));
|
|
||||||
}
|
}
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +66,7 @@ static void _loop(double t, int f)
|
||||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||||
y = (win_h / 2) - (h / 2);
|
y = (win_h / 2) - (h / 2);
|
||||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 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);
|
FPS_STD(NAME);
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue