Initial listing of remaining tests.
This commit is contained in:
parent
095e9141b7
commit
d90d23bdd6
|
@ -13,6 +13,198 @@ AM_CPPFLAGS = \
|
|||
bin_PROGRAMS = expedite
|
||||
bin_SCRIPTS = expedite-cmp
|
||||
|
||||
cxx_sources = \
|
||||
cxx/font_effect_blur_alpha.cc \
|
||||
cxx/font_effect_blur_alpha_capi.h \
|
||||
cxx/image_blend_border.cc \
|
||||
cxx/image_blend_border_capi.h \
|
||||
cxx/image_blend_border_recolor.cc \
|
||||
cxx/image_blend_border_recolor_capi.h \
|
||||
cxx/image_blend_fade_pow2_unscaled.cc \
|
||||
cxx/image_blend_fade_pow2_unscaled_capi.h \
|
||||
cxx/image_blend_fade_unscaled.cc \
|
||||
cxx/image_blend_fade_unscaled_capi.h \
|
||||
cxx/image_blend_many_smooth_same_scaled.cc \
|
||||
cxx/image_blend_many_smooth_same_scaled_capi.h \
|
||||
cxx/image_blend_nearest_same_scaled.cc \
|
||||
cxx/image_blend_nearest_same_scaled_capi.h \
|
||||
cxx/image_blend_nearest_scaled.cc \
|
||||
cxx/image_blend_nearest_scaled_capi.h \
|
||||
cxx/image_blend_nearest_solid_same_scaled.cc \
|
||||
cxx/image_blend_nearest_solid_same_scaled_capi.h \
|
||||
cxx/image_blend_nearest_solid_scaled.cc \
|
||||
cxx/image_blend_nearest_solid_scaled_capi.h \
|
||||
cxx/image_blend_occlude1.cc \
|
||||
cxx/image_blend_occlude1_capi.h \
|
||||
cxx/image_blend_occlude1_few.cc \
|
||||
cxx/image_blend_occlude1_few_capi.h \
|
||||
cxx/image_blend_occlude1_many.cc \
|
||||
cxx/image_blend_occlude1_many_capi.h \
|
||||
cxx/image_blend_occlude1_very_many.cc \
|
||||
cxx/image_blend_occlude1_very_many_capi.h \
|
||||
cxx/image_blend_occlude2.cc \
|
||||
cxx/image_blend_occlude2_capi.h \
|
||||
cxx/image_blend_occlude2_few.cc \
|
||||
cxx/image_blend_occlude2_few_capi.h \
|
||||
cxx/image_blend_occlude2_many.cc \
|
||||
cxx/image_blend_occlude2_many_capi.h \
|
||||
cxx/image_blend_occlude2_very_many.cc \
|
||||
cxx/image_blend_occlude2_very_many_capi.h \
|
||||
cxx/image_blend_occlude3.cc \
|
||||
cxx/image_blend_occlude3_capi.h \
|
||||
cxx/image_blend_occlude3_few.cc \
|
||||
cxx/image_blend_occlude3_few_capi.h \
|
||||
cxx/image_blend_occlude3_many.cc \
|
||||
cxx/image_blend_occlude3_many_capi.h \
|
||||
cxx/image_blend_occlude3_very_many.cc \
|
||||
cxx/image_blend_occlude3_very_many_capi.h \
|
||||
cxx/image_blend_occlude_capi.h \
|
||||
cxx/image_blend_smooth_same_scaled.cc \
|
||||
cxx/image_blend_smooth_same_scaled_capi.h \
|
||||
cxx/image_blend_smooth_scaled.cc \
|
||||
cxx/image_blend_smooth_scaled_capi.h \
|
||||
cxx/image_blend_smooth_solid_same_scaled.cc \
|
||||
cxx/image_blend_smooth_solid_same_scaled_capi.h \
|
||||
cxx/image_blend_smooth_solid_scaled.cc \
|
||||
cxx/image_blend_smooth_solid_scaled_capi.h \
|
||||
cxx/image_blend_solid_border.cc \
|
||||
cxx/image_blend_solid_border_capi.h \
|
||||
cxx/image_blend_solid_fade_pow2_unscaled.cc \
|
||||
cxx/image_blend_solid_fade_pow2_unscaled_capi.h \
|
||||
cxx/image_blend_solid_fade_unscaled.cc \
|
||||
cxx/image_blend_solid_fade_unscaled_capi.h \
|
||||
cxx/image_blend_solid_middle_border.cc \
|
||||
cxx/image_blend_solid_middle_border_capi.h \
|
||||
cxx/image_blend_solid_middle_unscaled.cc \
|
||||
cxx/image_blend_solid_middle_unscaled_capi.h \
|
||||
cxx/image_blend_solid_unscaled.cc \
|
||||
cxx/image_blend_solid_unscaled_capi.h \
|
||||
cxx/image_blend_unscaled.cc \
|
||||
cxx/image_blend_unscaled_capi.h \
|
||||
cxx/image_crossfade.cc \
|
||||
cxx/image_crossfade_capi.h \
|
||||
cxx/image_data_argb.cc \
|
||||
cxx/image_data_argb_alpha.cc \
|
||||
cxx/image_data_argb_alpha_capi.h \
|
||||
cxx/image_data_argb_capi.h \
|
||||
cxx/image_data_ycbcr601pl.cc \
|
||||
cxx/image_data_ycbcr601pl_capi.h \
|
||||
cxx/image_data_ycbcr601pl_map_nearest_solid_rotate.cc \
|
||||
cxx/image_data_ycbcr601pl_map_nearest_solid_rotate_capi.h \
|
||||
cxx/image_data_ycbcr601pl_map_solid_rotate.cc \
|
||||
cxx/image_data_ycbcr601pl_map_solid_rotate_capi.h \
|
||||
cxx/image_data_ycbcr601pl_wide_stride.cc \
|
||||
cxx/image_data_ycbcr601pl_wide_stride_capi.h \
|
||||
cxx/image_map_3d_1.cc \
|
||||
cxx/image_map_3d_1_capi.h \
|
||||
cxx/image_map_3d_2.cc \
|
||||
cxx/image_map_3d_2_capi.h \
|
||||
cxx/image_map_3d_3.cc \
|
||||
cxx/image_map_3d_3_capi.h \
|
||||
cxx/image_map_3d_4.cc \
|
||||
cxx/image_map_3d_4_capi.h \
|
||||
cxx/image_map_3d_5.cc \
|
||||
cxx/image_map_3d_5_capi.h \
|
||||
cxx/image_map_3d_6.cc \
|
||||
cxx/image_map_3d_6_capi.h \
|
||||
cxx/image_map_3d_flow.cc \
|
||||
cxx/image_map_3d_flow_capi.h \
|
||||
cxx/image_map_color_alpha_nearest_rotate.cc \
|
||||
cxx/image_map_color_alpha_nearest_rotate_capi.h \
|
||||
cxx/image_map_color_alpha_nearest_solid_rotate.cc \
|
||||
cxx/image_map_color_alpha_nearest_solid_rotate_capi.h \
|
||||
cxx/image_map_color_alpha_rotate.cc \
|
||||
cxx/image_map_color_alpha_rotate_capi.h \
|
||||
cxx/image_map_color_alpha_solid_rotate.cc \
|
||||
cxx/image_map_color_alpha_solid_rotate_capi.h \
|
||||
cxx/image_map_color_nearest_rotate.cc \
|
||||
cxx/image_map_color_nearest_rotate_capi.h \
|
||||
cxx/image_map_color_nearest_solid_rotate.cc \
|
||||
cxx/image_map_color_nearest_solid_rotate_capi.h \
|
||||
cxx/image_map_color_rotate.cc \
|
||||
cxx/image_map_color_rotate_capi.h \
|
||||
cxx/image_map_color_solid_rotate.cc \
|
||||
cxx/image_map_color_solid_rotate_capi.h \
|
||||
cxx/image_map_nearest_rotate.cc \
|
||||
cxx/image_map_nearest_rotate_capi.h \
|
||||
cxx/image_map_nearest_solid_rotate.cc \
|
||||
cxx/image_map_nearest_solid_rotate_capi.h \
|
||||
cxx/image_map_rotate.cc \
|
||||
cxx/image_map_rotate_capi.h \
|
||||
cxx/image_map_solid_rotate.cc \
|
||||
cxx/image_map_solid_rotate_capi.h \
|
||||
cxx/image_quality_scale.cc \
|
||||
cxx/image_quality_scale_capi.h \
|
||||
cxx/line_blend.cc \
|
||||
cxx/line_blend_capi.h \
|
||||
cxx/proxy_image.cc \
|
||||
cxx/proxy_image_capi.h \
|
||||
cxx/proxy_image_offscreen.cc \
|
||||
cxx/proxy_image_offscreen_capi.h \
|
||||
cxx/proxy_text_fixed.cc \
|
||||
cxx/proxy_text_fixed_capi.h \
|
||||
cxx/proxy_text_random.cc \
|
||||
cxx/proxy_text_random_capi.h \
|
||||
cxx/rect_blend.cc \
|
||||
cxx/rect_blend_capi.h \
|
||||
cxx/rect_blend_few.cc \
|
||||
cxx/rect_blend_few_capi.h \
|
||||
cxx/rect_blend_pow2.cc \
|
||||
cxx/rect_blend_pow2_capi.h \
|
||||
cxx/rect_blend_pow2_few.cc \
|
||||
cxx/rect_blend_pow2_few_capi.h \
|
||||
cxx/rect_solid.cc \
|
||||
cxx/rect_solid_capi.h \
|
||||
cxx/rect_solid_few.cc \
|
||||
cxx/rect_solid_few_capi.h \
|
||||
cxx/text_basic.cc \
|
||||
cxx/text_basic_capi.h \
|
||||
cxx/text_change.cc \
|
||||
cxx/text_change_capi.h \
|
||||
cxx/text_styles.cc \
|
||||
cxx/text_styles_capi.h \
|
||||
cxx/text_styles_different_strings.cc \
|
||||
cxx/text_styles_different_strings_capi.h \
|
||||
cxx/textblock_auto_align.cc \
|
||||
cxx/textblock_auto_align_capi.h \
|
||||
cxx/textblock_basic.cc \
|
||||
cxx/textblock_basic_capi.h \
|
||||
cxx/textblock_intl.cc \
|
||||
cxx/textblock_intl_capi.h \
|
||||
cxx/textblock_text_append.cc \
|
||||
cxx/textblock_text_append_capi.h \
|
||||
cxx/widgets__*_capi.h \
|
||||
cxx/widgets_file_icons.cc \
|
||||
cxx/widgets_file_icons_2.cc \
|
||||
cxx/widgets_file_icons_2_capi.h \
|
||||
cxx/widgets_file_icons_2_grouped.cc \
|
||||
cxx/widgets_file_icons_2_grouped_capi.h \
|
||||
cxx/widgets_file_icons_2_same.cc \
|
||||
cxx/widgets_file_icons_2_same_capi.h \
|
||||
cxx/widgets_file_icons_2_same_grouped.cc \
|
||||
cxx/widgets_file_icons_2_same_grouped_capi.h \
|
||||
cxx/widgets_file_icons_3.cc \
|
||||
cxx/widgets_file_icons_3_capi.h \
|
||||
cxx/widgets_file_icons_4.cc \
|
||||
cxx/widgets_file_icons_4_capi.h \
|
||||
cxx/widgets_file_icons_capi.h \
|
||||
cxx/widgets_list_1.cc \
|
||||
cxx/widgets_list_1_capi.h \
|
||||
cxx/widgets_list_1_grouped.cc \
|
||||
cxx/widgets_list_1_grouped_capi.h \
|
||||
cxx/widgets_list_2.cc \
|
||||
cxx/widgets_list_2_capi.h \
|
||||
cxx/widgets_list_2_grouped.cc \
|
||||
cxx/widgets_list_2_grouped_capi.h \
|
||||
cxx/widgets_list_3.cc \
|
||||
cxx/widgets_list_3_capi.h \
|
||||
cxx/widgets_list_3_grouped.cc \
|
||||
cxx/widgets_list_3_grouped_capi.h \
|
||||
cxx/widgets_list_4.cc \
|
||||
cxx/widgets_list_4_capi.h \
|
||||
cxx/widgets_list_4_grouped.cc \
|
||||
cxx/widgets_list_4_grouped_capi.h
|
||||
|
||||
expedite_SOURCES = \
|
||||
main.c main.h \
|
||||
ui.c ui.h \
|
||||
|
@ -36,20 +228,10 @@ widgets_list_4_grouped.c \
|
|||
image_blend_unscaled.c \
|
||||
image_blend_solid_middle_unscaled.c \
|
||||
image_blend_fade_unscaled.c \
|
||||
cxx/image_blend_fade_unscaled.cc \
|
||||
cxx/image_blend_fade_unscaled_capi.h \
|
||||
image_blend_fade_pow2_unscaled.c \
|
||||
cxx/image_blend_fade_pow2_unscaled.cc \
|
||||
cxx/image_blend_fade_pow2_unscaled_capi.h \
|
||||
image_blend_solid_unscaled.c \
|
||||
cxx/image_blend_solid_unscaled.cc \
|
||||
cxx/image_blend_solid_unscaled_capi.h \
|
||||
image_blend_solid_fade_unscaled.c \
|
||||
cxx/image_blend_solid_fade_unscaled.cc \
|
||||
cxx/image_blend_solid_fade_unscaled_capi.h \
|
||||
image_blend_solid_fade_pow2_unscaled.c \
|
||||
cxx/image_blend_solid_fade_pow2_unscaled.cc \
|
||||
cxx/image_blend_solid_fade_pow2_unscaled_capi.h \
|
||||
image_blend_nearest_scaled.c \
|
||||
image_blend_nearest_solid_scaled.c \
|
||||
image_blend_smooth_scaled.c \
|
||||
|
@ -59,15 +241,9 @@ image_blend_nearest_solid_same_scaled.c \
|
|||
image_blend_smooth_same_scaled.c \
|
||||
image_blend_smooth_solid_same_scaled.c \
|
||||
image_blend_border.c \
|
||||
cxx/image_blend_border.cc \
|
||||
cxx/image_blend_border_capi.h \
|
||||
image_blend_border_recolor.c \
|
||||
cxx/image_blend_border_recolor.cc \
|
||||
cxx/image_blend_border_recolor_capi.h \
|
||||
image_blend_solid_middle_border.c \
|
||||
image_blend_solid_border.c \
|
||||
cxx/image_blend_solid_border.cc \
|
||||
cxx/image_blend_solid_border_acpi.h \
|
||||
image_map_rotate.c \
|
||||
image_map_solid_rotate.c \
|
||||
image_map_nearest_rotate.c \
|
||||
|
@ -128,7 +304,8 @@ proxy_text_random.c \
|
|||
line_blend.c \
|
||||
image_blend_many_smooth_same_scaled.c \
|
||||
font_effect_blur_alpha.c \
|
||||
font_effect_blur_color.c
|
||||
font_effect_blur_color.c \
|
||||
${cxx_sources}
|
||||
# \
|
||||
# image_mask.c \
|
||||
# image_mask_2.c \
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
# include "main.h"
|
||||
|
||||
#include "ui.h"
|
||||
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
extern int win_w, win_h;
|
||||
/* private data */
|
||||
static Evas_Object *text;
|
||||
static const int MAX_BLUR = 100;
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
|
||||
Evas_Object *o;
|
||||
int w,h;
|
||||
|
||||
o = evas_object_text_add(G_evas);
|
||||
evas_object_color_set(o, 0, 0, 0, 255);
|
||||
evas_object_text_font_set(o, "Vera-Bold", 80);
|
||||
evas_object_text_text_set(o, "Font Effect");
|
||||
evas_object_show(o);
|
||||
evas_object_geometry_get(o, NULL, NULL, &w, &h);
|
||||
evas_object_move(o, (win_w / 2) - (w / 2) - MAX_BLUR, (win_h / 2) - (h / 2) - MAX_BLUR);
|
||||
text = o;
|
||||
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
evas_object_del(text);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
char buf[256];
|
||||
char *str = "padding_set(%d);blur(%d,color=black);";
|
||||
sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1));
|
||||
eo_do(text, evas_obj_text_filter_program_set(buf));
|
||||
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME font_effect_blur_alpha_cxx_start
|
||||
#define NAME "Font Effect Blur (Alpha)"
|
||||
#define ICON "text.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,107 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_many_smooth_down_scaled_start
|
||||
#define NAME "Image Blend Many Smooth Down Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#define MANYNUM 8192
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[MANYNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i, w, h, n;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < MANYNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
n = rnd() % 100;
|
||||
w = 3 + ((n * (60 - 3)) / 100);
|
||||
h = 4 + ((n * (80 - 4)) / 100);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
efl_image_smooth_scale_set(1),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < MANYNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < MANYNUM; i++)
|
||||
{
|
||||
eo_do(o_images[i], evas_obj_size_get(&w, &h));
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_many_smooth_same_scaled_cxx_start
|
||||
#define NAME "Image Blend Many Smooth Down Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,106 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_nearest_same_scaled_start
|
||||
#define NAME "Image Blend Nearest Same Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 40 + ((i % 3) * (w0 / 2));
|
||||
h = 40 + ((i % 3) * (h0 / 2));
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_nearest_same_scaled_cxx_start
|
||||
#define NAME "Image Blend Nearest Same Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,106 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_nearest_scaled_start
|
||||
#define NAME "Image Blend Nearest Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
|
||||
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_nearest_scaled_cxx_start
|
||||
#define NAME "Image Blend Nearest Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,106 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_nearest_solid_same_scaled_start
|
||||
#define NAME "Image Blend Nearest Solid Same Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 40 + ((i % 3) * (w0 / 2));
|
||||
h = 40 + ((i % 3) * (h0 / 2));
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_nearest_solid_same_scaled_cxx_start
|
||||
#define NAME "Image Blend Nearest Solid Same Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,106 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_nearest_solid_scaled_start
|
||||
#define NAME "Image Blend Nearest Solid Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
|
||||
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_nearest_solid_scaled_cxx_start
|
||||
#define NAME "Image Blend Nearest Solid Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,119 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude1_start
|
||||
#define NAME "Image Blend Occlude 1"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i < (OBNUM / 2))
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i < (OBNUM / 2))
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude1_cxx_start
|
||||
#define NAME "Image Blend Occlude 1"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude1_few_start
|
||||
#define NAME "Image Blend Occlude 1 Few"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 32
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i < (OBNUM / 2))
|
||||
{
|
||||
eo_do(o, efl_file_set(PACKAGE_DATA_DIR"/data/logo.png", NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(PACKAGE_DATA_DIR"/data/image.png", NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i < (OBNUM / 2))
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude1_few_cxx_start
|
||||
#define NAME "Image Blend Occlude 1 Few"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude1_many_start
|
||||
#define NAME "Image Blend Occlude 1 Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 320
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i < (OBNUM / 2))
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i < (OBNUM / 2))
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude1_many_cxx_start
|
||||
#define NAME "Image Blend Occlude 1 Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude1_very_many_start
|
||||
#define NAME "Image Blend Occlude 1 Very Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 1600
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i < (OBNUM / 2))
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i < (OBNUM / 2))
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude1_very_many_cxx_start
|
||||
#define NAME "Image Blend Occlude 1 Very Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,119 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude2_start
|
||||
#define NAME "Image Blend Occlude 2"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i & 0x1)
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i & 0x1)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude2_cxx_start
|
||||
#define NAME "Image Blend Occlude 2"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude2_few_start
|
||||
#define NAME "Image Blend Occlude 2 Few"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 32
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i & 0x1)
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i & 0x1)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude2_few_cxx_start
|
||||
#define NAME "Image Blend Occlude 2 Few"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude2_many_start
|
||||
#define NAME "Image Blend Occlude 2 Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 320
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i & 0x1)
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i & 0x1)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude2_many_cxx_start
|
||||
#define NAME "Image Blend Occlude 2 Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude2_very_many_start
|
||||
#define NAME "Image Blend Occlude 2 Very Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 1600
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i & 0x1)
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i & 0x1)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude2_very_many_cxx_start
|
||||
#define NAME "Image Blend Occlude 2 Very Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,119 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude3_start
|
||||
#define NAME "Image Blend Occlude 3"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i > (OBNUM / 2))
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i > (OBNUM / 2))
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude3_cxx_start
|
||||
#define NAME "Image Blend Occlude 3"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude3_few_start
|
||||
#define NAME "Image Blend Occlude 3 Few"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 32
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i > (OBNUM / 2))
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i > (OBNUM / 2))
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude3_few_cxx_start
|
||||
#define NAME "Image Blend Occlude 3 Few"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude3_many_start
|
||||
#define NAME "Image Blend Occlude 3 Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 320
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i > (OBNUM / 2))
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i > (OBNUM / 2))
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude3_many_cxx_start
|
||||
#define NAME "Image Blend Occlude 3 Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,122 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude3_very_many_start
|
||||
#define NAME "Image Blend Occlude 3 Very Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
#undef OBNUM
|
||||
#define OBNUM 1600
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
srnd();
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
if (i > (OBNUM / 2))
|
||||
{
|
||||
eo_do(o, efl_file_set(build_path("logo.png"), NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
||||
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
|
||||
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_position_set(x, y));
|
||||
}
|
||||
eo_do(o,
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
if (i > (OBNUM / 2))
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude3_very_many_cxx_start
|
||||
#define NAME "Image Blend Occlude 3 Very Many"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_occlude_cxx_start
|
||||
|
||||
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,106 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_smooth_same_scaled_start
|
||||
#define NAME "Image Blend Smooth Same Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
efl_image_smooth_scale_set(1),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 40 + ((i % 3) * (w0 / 2));
|
||||
h = 40 + ((i % 3) * (h0 / 2));
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_smooth_same_scaled_cxx_start
|
||||
#define NAME "Image Blend Smooth Same Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,106 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_smooth_scaled_start
|
||||
#define NAME "Image Blend Smooth Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
efl_image_smooth_scale_set(1),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
|
||||
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_smooth_scaled_cxx_start
|
||||
#define NAME "Image Blend Smooth Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,106 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_smooth_solid_same_scaled_start
|
||||
#define NAME "Image Blend Smooth Solid Same Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
efl_image_smooth_scale_set(1),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 40 + ((i % 3) * (w0 / 2));
|
||||
h = 40 + ((i % 3) * (h0 / 2));
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_smooth_solid_same_scaled_cxx_start
|
||||
#define NAME "Image Blend Smooth Solid Same Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,106 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_smooth_solid_scaled_start
|
||||
#define NAME "Image Blend Smooth Solid Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
efl_image_smooth_scale_set(1),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
|
||||
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_smooth_solid_scaled_cxx_start
|
||||
#define NAME "Image Blend Smooth Solid Scaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,107 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_solid_middle_border
|
||||
#define NAME "Image Blend Solid Middle Border"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("bar.png"), NULL),
|
||||
evas_obj_image_border_set(6, 6, 6, 6),
|
||||
evas_obj_image_border_center_fill_set(EVAS_BORDER_FILL_SOLID),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h, w0, h0;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w0 = 80;
|
||||
h0 = 80;
|
||||
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
|
||||
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_solid_middle_border_cxx_start
|
||||
#define NAME "Image Blend Solid Middle Border"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,104 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_solid_middle_unscaled_start
|
||||
#define NAME "Image Blend Solid Middle Unscaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_image_border_set(43, 48, 48, 83),
|
||||
evas_obj_image_border_center_fill_set(EVAS_BORDER_FILL_SOLID),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_solid_middle_unscaled_cxx_start
|
||||
#define NAME "Image Blend Solid Middle Unscaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,102 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_unscaled_start
|
||||
#define NAME "Image Blend Unscaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < OBNUM; i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
eo_do(o_images[i], evas_obj_position_set(x, y));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_blend_unscaled_cxx_start
|
||||
#define NAME "Image Blend Unscaled"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,102 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_crossfade_start
|
||||
#define NAME "Image Crossfade"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[2];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
Evas_Object *o;
|
||||
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[0] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("im1.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 720, 420),
|
||||
evas_obj_size_set(720, 420),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[1] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("im2.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 720, 420),
|
||||
evas_obj_size_set(720, 420),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 2; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int a;
|
||||
|
||||
a = f & 0x1f;
|
||||
a = ((a << 3) | (a >> 2)) & 0xff;
|
||||
eo_do(o_images[1], evas_obj_color_set(a, a, a, a));
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_crossfade_cxx_start
|
||||
#define NAME "Image Crossfade"
|
||||
#define ICON "blend.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,125 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_argb_start
|
||||
#define NAME "Image Data ARGB"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[1];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
|
||||
evas_obj_image_size_set(640, 480),
|
||||
evas_obj_image_alpha_set(0),
|
||||
evas_obj_image_fill_set(0, 0, 640, 480),
|
||||
evas_obj_size_set(640, 480),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 1; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i, st;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
unsigned int *data, *p;
|
||||
|
||||
w = 640;
|
||||
h = 480;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h),
|
||||
data = evas_obj_image_data_get(1),
|
||||
st = evas_obj_image_stride_get());
|
||||
st = st >> 2;
|
||||
p = data;
|
||||
for (y = 0; y < h; y++)
|
||||
{
|
||||
for (x = 0; x < w; x++)
|
||||
{
|
||||
*p = ((((x * y) + f) << 8) ^ (x - y - f)) | 0xff000000;
|
||||
p++;
|
||||
}
|
||||
p += (st - w);
|
||||
}
|
||||
eo_do(o_images[i],
|
||||
evas_obj_image_data_set(data),
|
||||
evas_obj_image_data_update_add( 0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,136 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_argb_alpha_start
|
||||
#define NAME "Image Data ARGB Alpha"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[1];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
|
||||
evas_obj_image_size_set(640, 480),
|
||||
evas_obj_image_alpha_set(1),
|
||||
evas_obj_image_fill_set(0, 0, 640, 480),
|
||||
evas_obj_size_set(640, 480),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 1; i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i, st;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
unsigned int *data, *p;
|
||||
int a, r, g, b;
|
||||
w = 640;
|
||||
h = 480;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h),
|
||||
data = evas_obj_image_data_get(1),
|
||||
st = evas_obj_image_stride_get());
|
||||
st = st >> 2;
|
||||
p = data;
|
||||
for (y = 0; y < h; y++)
|
||||
{
|
||||
for (x = 0; x < w; x++)
|
||||
{
|
||||
r = (x * y / 7) + f;
|
||||
g = (x / 2);
|
||||
b = (y / 2);
|
||||
a = (x + y);
|
||||
r &= 0xff;
|
||||
g &= 0xff;
|
||||
b &= 0xff;
|
||||
a &= 0xff;
|
||||
r = (a * r) / 255;
|
||||
g = (a * g) / 255;
|
||||
b = (a * b) / 255;
|
||||
*p = (a << 24) | (r << 16) | (g << 8) | b;
|
||||
p++;
|
||||
}
|
||||
p += (st - w);
|
||||
}
|
||||
eo_do(o_images[i],
|
||||
evas_obj_image_data_set(data),
|
||||
evas_obj_image_data_update_add( 0, 0, w, h));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_argb_alpha_cxx_start
|
||||
#define NAME "Image Data ARGB Alpha"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_argb_cxx_start
|
||||
#define NAME "Image Data ARGB"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,143 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_ycbcr601pl_start
|
||||
#define NAME "Image Data YCbCr 601 Pointer List"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[1];
|
||||
static unsigned char *yp = NULL, *up = NULL, *vp = NULL;
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i, y;
|
||||
FILE *f;
|
||||
unsigned char **data, **lp;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
|
||||
evas_obj_image_size_set(640, 480),
|
||||
evas_obj_image_alpha_set(0),
|
||||
evas_obj_image_fill_set(0, 0, 640, 480),
|
||||
evas_obj_size_set(640, 480),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
yp = malloc(640 * 480);
|
||||
up = malloc(320 * 240);
|
||||
vp = malloc(320 * 240);
|
||||
f = fopen(build_path("tp.yuv"), "rb");
|
||||
if (f)
|
||||
{
|
||||
fread(yp, 640 * 480, 1, f);
|
||||
fread(up, 320 * 240, 1, f);
|
||||
fread(vp, 320 * 240, 1, f);
|
||||
fclose(f);
|
||||
}
|
||||
data = evas_object_image_data_get(o_images[i], 1);
|
||||
lp = data;
|
||||
for (y = 0; y < 480; y++)
|
||||
{
|
||||
*lp = yp + (y * 640);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = up + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = vp + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
eo_do(o_images[i], evas_obj_image_data_set(data));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 1; i++) eo_del(o_images[i]);
|
||||
free(yp);
|
||||
free(up);
|
||||
free(vp);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
w = 640;
|
||||
h = 480;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h),
|
||||
evas_obj_image_data_update_add( 0, 0, 640, 480));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_ycbcr601pl_cxx_start
|
||||
#define NAME "Image Data YCbCr 601 Pointer List"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,150 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_ycbcr601pl_map_nearest_solid_rotate_start
|
||||
#define NAME "Image Data YCbCr 601 Pointer List Map Nearest Solid Rotate"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[1];
|
||||
static unsigned char *yp = NULL, *up = NULL, *vp = NULL;
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i, y;
|
||||
FILE *f;
|
||||
unsigned char **data, **lp;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
|
||||
evas_obj_image_size_set(640, 480),
|
||||
evas_obj_image_alpha_set(0),
|
||||
evas_obj_image_fill_set(0, 0, 640, 480),
|
||||
evas_obj_size_set(640, 480),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
yp = malloc(640 * 480);
|
||||
up = malloc(320 * 240);
|
||||
vp = malloc(320 * 240);
|
||||
f = fopen(build_path("tp.yuv"), "rb");
|
||||
if (f)
|
||||
{
|
||||
fread(yp, 640 * 480, 1, f);
|
||||
fread(up, 320 * 240, 1, f);
|
||||
fread(vp, 320 * 240, 1, f);
|
||||
fclose(f);
|
||||
}
|
||||
data = evas_object_image_data_get(o_images[i], 1);
|
||||
lp = data;
|
||||
for (y = 0; y < 480; y++)
|
||||
{
|
||||
*lp = yp + (y * 640);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = up + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = vp + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
eo_do(o_images[i], evas_obj_image_data_set(data));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 1; i++) eo_del(o_images[i]);
|
||||
free(yp);
|
||||
free(up);
|
||||
free(vp);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
w = 640;
|
||||
h = 480;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_ycbcr601pl_map_nearest_solid_rotate_cxx_start
|
||||
#define NAME "Image Data YCbCr 601 Pointer List Map Nearest Solid Rotate"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,148 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_ycbcr601pl_map_solid_rotate_start
|
||||
#define NAME "Image Data YCbCr 601 Pointer List Map Solid Rotate"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[1];
|
||||
static unsigned char *yp = NULL, *up = NULL, *vp = NULL;
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i, y;
|
||||
FILE *f;
|
||||
unsigned char **data, **lp;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
|
||||
evas_obj_image_size_set(640, 480),
|
||||
evas_obj_image_alpha_set(0),
|
||||
evas_obj_image_fill_set(0, 0, 640, 480),
|
||||
evas_obj_size_set(640, 480),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
yp = malloc(640 * 480);
|
||||
up = malloc(320 * 240);
|
||||
vp = malloc(320 * 240);
|
||||
f = fopen(build_path("tp.yuv"), "rb");
|
||||
if (f)
|
||||
{
|
||||
fread(yp, 640 * 480, 1, f);
|
||||
fread(up, 320 * 240, 1, f);
|
||||
fread(vp, 320 * 240, 1, f);
|
||||
fclose(f);
|
||||
}
|
||||
data = evas_object_image_data_get(o_images[i], 1);
|
||||
lp = data;
|
||||
for (y = 0; y < 480; y++)
|
||||
{
|
||||
*lp = yp + (y * 640);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = up + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = vp + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
eo_do(o_images[i], evas_obj_image_data_set(data));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 1; i++) eo_del(o_images[i]);
|
||||
free(yp);
|
||||
free(up);
|
||||
free(vp);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
w = 640;
|
||||
h = 480;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_ycbcr601pl_map_solid_rotate_cxx_start
|
||||
#define NAME "Image Data YCbCr 601 Pointer List Map Solid Rotate"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,180 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_ycbcr601pl_wide_stride_start
|
||||
#define NAME "Image Data YCbCr 601 Pointer List Wide Stride"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[1];
|
||||
static unsigned char *yp = NULL, *up = NULL, *vp = NULL;
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i, y;
|
||||
FILE *f;
|
||||
unsigned char **data, **lp;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
|
||||
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
|
||||
evas_obj_image_size_set(320, 480),
|
||||
evas_obj_image_alpha_set(0),
|
||||
evas_obj_image_fill_set(0, 0, 640, 480),
|
||||
evas_obj_size_set(640, 480),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
yp = malloc(640 * 480);
|
||||
up = malloc(320 * 240);
|
||||
vp = malloc(320 * 240);
|
||||
f = fopen(build_path("tp.yuv"), "rb");
|
||||
if (f)
|
||||
{
|
||||
fread(yp, 640 * 480, 1, f);
|
||||
fread(up, 320 * 240, 1, f);
|
||||
fread(vp, 320 * 240, 1, f);
|
||||
fclose(f);
|
||||
}
|
||||
data = evas_object_image_data_get(o_images[i], 1);
|
||||
if (data)
|
||||
{
|
||||
lp = data;
|
||||
for (y = 0; y < 480; y++)
|
||||
{
|
||||
*lp = yp + (y * 640);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = up + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = vp + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
eo_do(o_images[i],
|
||||
evas_obj_image_data_set(data),
|
||||
evas_obj_image_data_update_add( 0, 0, 320, 480));
|
||||
}
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 1; i++) eo_del(o_images[i]);
|
||||
free(yp);
|
||||
free(up);
|
||||
free(vp);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
Evas_Coord x, y, w, h;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
unsigned char **data, **lp;
|
||||
|
||||
w = 640;
|
||||
h = 480;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
eo_do(o_images[i],
|
||||
evas_obj_position_set(x, y),
|
||||
evas_obj_size_set(w, h),
|
||||
evas_obj_image_fill_set(0, 0, w, h));
|
||||
|
||||
w = 320 - 16 + f;
|
||||
if (w < 1) w = 1;
|
||||
else if (w > 640) w = 640;
|
||||
|
||||
w &= ~0x1;
|
||||
|
||||
eo_do(o_images[i], evas_obj_image_size_set(w, 480));
|
||||
data = evas_object_image_data_get(o_images[i], 1);
|
||||
if (data)
|
||||
{
|
||||
lp = data;
|
||||
for (y = 0; y < 480; y++)
|
||||
{
|
||||
*lp = yp + (y * 640);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = up + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
for (y = 0; y < 240; y++)
|
||||
{
|
||||
*lp = vp + (y * 320);
|
||||
lp++;
|
||||
}
|
||||
eo_do(o_images[i],
|
||||
evas_obj_image_data_set(data),
|
||||
evas_obj_image_data_update_add( 0, 0, w, 480));
|
||||
}
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
ui_func_set(_key, _loop);
|
||||
_setup();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_data_ycbcr601pl_wide_stride_cxx_start
|
||||
#define NAME "Image Data YCbCr 601 Pointer List Wide Stride"
|
||||
#define ICON "data.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,263 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_1_start
|
||||
#define NAME "Image Map 3D 1"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
typedef struct _Point
|
||||
{
|
||||
Evas_Coord x, y, z, u, v;
|
||||
} Point;
|
||||
|
||||
typedef struct _Side
|
||||
{
|
||||
Evas_Object *o;
|
||||
Point pt[4];
|
||||
} Side;
|
||||
|
||||
typedef struct _Cube
|
||||
{
|
||||
Side side[6];
|
||||
} Cube;
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Cube *cubes[5];
|
||||
|
||||
#define POINT(n, p, xx, yy, zz, uu, vv) \
|
||||
c->side[n].pt[p].x = xx; \
|
||||
c->side[n].pt[p].y = yy; \
|
||||
c->side[n].pt[p].z = zz; \
|
||||
c->side[n].pt[p].u = uu; \
|
||||
c->side[n].pt[p].v = vv
|
||||
|
||||
static Cube *
|
||||
_cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||
{
|
||||
Cube *c;
|
||||
int i;
|
||||
|
||||
w -= (w / 2);
|
||||
h -= (h / 2);
|
||||
d -= (d / 2);
|
||||
c = calloc(1, sizeof(Cube));
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Object *o;
|
||||
char buf[256];
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
c->side[i].o = o;
|
||||
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path(buf), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 256, 256),
|
||||
evas_obj_size_set(256, 256),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||
POINT(0, 1, w, -h, -d, 256, 0);
|
||||
POINT(0, 2, w, h, -d, 256, 256);
|
||||
POINT(0, 3, -w, h, -d, 0, 256);
|
||||
|
||||
POINT(1, 0, w, -h, -d, 0, 0);
|
||||
POINT(1, 1, w, -h, d, 256, 0);
|
||||
POINT(1, 2, w, h, d, 256, 256);
|
||||
POINT(1, 3, w, h, -d, 0, 256);
|
||||
|
||||
POINT(2, 0, w, -h, d, 0, 0);
|
||||
POINT(2, 1, -w, -h, d, 256, 0);
|
||||
POINT(2, 2, -w, h, d, 256, 256);
|
||||
POINT(2, 3, w, h, d, 0, 256);
|
||||
|
||||
POINT(3, 0, -w, -h, d, 0, 0);
|
||||
POINT(3, 1, -w, -h, -d, 256, 0);
|
||||
POINT(3, 2, -w, h, -d, 256, 256);
|
||||
POINT(3, 3, -w, h, d, 0, 256);
|
||||
|
||||
POINT(4, 0, -w, -h, d, 0, 0);
|
||||
POINT(4, 1, w, -h, d, 256, 0);
|
||||
POINT(4, 2, w, -h, -d, 256, 256);
|
||||
POINT(4, 3, -w, -h, -d, 0, 256);
|
||||
|
||||
POINT(5, 0, -w, h, -d, 0, 0);
|
||||
POINT(5, 1, w, h, -d, 256, 0);
|
||||
POINT(5, 2, w, h, d, 256, 256);
|
||||
POINT(5, 3, -w, h, d, 0, 256);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_pos(Cube *c,
|
||||
Evas_Coord x, Evas_Coord y, Evas_Coord z,
|
||||
double dx, double dy, double dz)
|
||||
{
|
||||
static Evas_Map *m = NULL;
|
||||
int i, j, order[6], sorted;
|
||||
Evas_Coord mz[6];
|
||||
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Coord tz[4];
|
||||
|
||||
for (j = 0; j < 4; j++)
|
||||
{
|
||||
evas_map_point_coord_set(m, j,
|
||||
c->side[i].pt[j].x + x,
|
||||
c->side[i].pt[j].y + y,
|
||||
c->side[i].pt[j].z + z);
|
||||
evas_map_point_image_uv_set(m, j,
|
||||
c->side[i].pt[j].u,
|
||||
c->side[i].pt[j].v);
|
||||
evas_map_point_color_set(m, j, 255, 255, 255, 255);
|
||||
}
|
||||
evas_map_util_3d_rotate(m, dx, dy, dz, x, y, z);
|
||||
evas_map_util_3d_lighting(m, -1000, -1000, -1000,
|
||||
255, 255, 255,
|
||||
20, 20, 20);
|
||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
|
||||
if (evas_map_util_clockwise_get(m))
|
||||
{
|
||||
eo_do(c->side[i].o,
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
else
|
||||
{
|
||||
eo_do(c->side[i].o, evas_obj_visibility_set(EINA_FALSE));
|
||||
}
|
||||
|
||||
order[i] = i;
|
||||
for (j = 0; j < 4; j++)
|
||||
evas_map_point_coord_get(m, j, NULL, NULL, &(tz[j]));
|
||||
mz[i] = (tz[0] + tz[1] + tz[2] + tz[3]) / 4;
|
||||
}
|
||||
sorted = 0;
|
||||
do
|
||||
{
|
||||
sorted = 1;
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
if (mz[order[i]] > mz[order[i + 1]])
|
||||
{
|
||||
j = order[i];
|
||||
order[i] = order[i + 1];
|
||||
order[i + 1] = j;
|
||||
sorted = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (!sorted);
|
||||
|
||||
eo_do(c->side[order[0]].o, evas_obj_raise());
|
||||
for (i = 1; i < 6; i++)
|
||||
eo_do(c->side[order[i]].o, evas_obj_stack_below(c->side[order[i - 1]].o));
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_free(Cube *c)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
|
||||
free(c);
|
||||
}
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
cubes[0] = _cube_new(128, 128, 256);
|
||||
cubes[1] = _cube_new(256, 128, 128);
|
||||
cubes[2] = _cube_new(256, 256, 128);
|
||||
cubes[3] = _cube_new(128, 256, 128);
|
||||
cubes[4] = _cube_new(256, 256, 256);
|
||||
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
_cube_free(cubes[0]);
|
||||
_cube_free(cubes[1]);
|
||||
_cube_free(cubes[2]);
|
||||
_cube_free(cubes[3]);
|
||||
_cube_free(cubes[4]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
_cube_pos(cubes[0],
|
||||
(win_w / 2) - 640, (win_h / 2) - 256, 512,
|
||||
f / 2.0, f, f / 3.0);
|
||||
_cube_pos(cubes[1],
|
||||
(win_w / 2) + 512, (win_h / 2) - 128, 384,
|
||||
f / 3.0, f / 2.0, f / 4.0);
|
||||
_cube_pos(cubes[2],
|
||||
(win_w / 2) - 384, (win_h / 2) + 128, 256,
|
||||
f / 2.0, f / 3.0, f);
|
||||
_cube_pos(cubes[3],
|
||||
(win_w / 2) + 256, (win_h / 2) + 64, 128,
|
||||
f, f / 5.0, f / 2.0);
|
||||
_cube_pos(cubes[4],
|
||||
(win_w / 2), (win_h / 2), 0,
|
||||
f / 4.0, f / 3.0, f / 5.0);
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_1_cxx_start
|
||||
#define NAME "Image Map 3D 1"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,261 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_2_start
|
||||
#define NAME "Image Map 3D 2"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
typedef struct _Point
|
||||
{
|
||||
Evas_Coord x, y, z, u, v;
|
||||
} Point;
|
||||
|
||||
typedef struct _Side
|
||||
{
|
||||
Evas_Object *o;
|
||||
Point pt[4];
|
||||
} Side;
|
||||
|
||||
typedef struct _Cube
|
||||
{
|
||||
Side side[6];
|
||||
} Cube;
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Cube *cubes[5];
|
||||
|
||||
#define POINT(n, p, xx, yy, zz, uu, vv) \
|
||||
c->side[n].pt[p].x = xx; \
|
||||
c->side[n].pt[p].y = yy; \
|
||||
c->side[n].pt[p].z = zz; \
|
||||
c->side[n].pt[p].u = uu; \
|
||||
c->side[n].pt[p].v = vv
|
||||
|
||||
static Cube *
|
||||
_cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||
{
|
||||
Cube *c;
|
||||
int i;
|
||||
|
||||
w -= (w / 2);
|
||||
h -= (h / 2);
|
||||
d -= (d / 2);
|
||||
c = calloc(1, sizeof(Cube));
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Object *o;
|
||||
char buf[256];
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
c->side[i].o = o;
|
||||
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path(buf), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 256, 256),
|
||||
evas_obj_size_set(256, 256),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||
POINT(0, 1, w, -h, -d, 256, 0);
|
||||
POINT(0, 2, w, h, -d, 256, 256);
|
||||
POINT(0, 3, -w, h, -d, 0, 256);
|
||||
|
||||
POINT(1, 0, w, -h, -d, 0, 0);
|
||||
POINT(1, 1, w, -h, d, 256, 0);
|
||||
POINT(1, 2, w, h, d, 256, 256);
|
||||
POINT(1, 3, w, h, -d, 0, 256);
|
||||
|
||||
POINT(2, 0, w, -h, d, 0, 0);
|
||||
POINT(2, 1, -w, -h, d, 256, 0);
|
||||
POINT(2, 2, -w, h, d, 256, 256);
|
||||
POINT(2, 3, w, h, d, 0, 256);
|
||||
|
||||
POINT(3, 0, -w, -h, d, 0, 0);
|
||||
POINT(3, 1, -w, -h, -d, 256, 0);
|
||||
POINT(3, 2, -w, h, -d, 256, 256);
|
||||
POINT(3, 3, -w, h, d, 0, 256);
|
||||
|
||||
POINT(4, 0, -w, -h, d, 0, 0);
|
||||
POINT(4, 1, w, -h, d, 256, 0);
|
||||
POINT(4, 2, w, -h, -d, 256, 256);
|
||||
POINT(4, 3, -w, -h, -d, 0, 256);
|
||||
|
||||
POINT(5, 0, -w, h, -d, 0, 0);
|
||||
POINT(5, 1, w, h, -d, 256, 0);
|
||||
POINT(5, 2, w, h, d, 256, 256);
|
||||
POINT(5, 3, -w, h, d, 0, 256);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_pos(Cube *c,
|
||||
Evas_Coord x, Evas_Coord y, Evas_Coord z,
|
||||
double dx, double dy, double dz)
|
||||
{
|
||||
static Evas_Map *m = NULL;
|
||||
int i, j, order[6], sorted;
|
||||
Evas_Coord mz[6];
|
||||
|
||||
if (!m) m = evas_map_new(4);
|
||||
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Coord tz[4];
|
||||
|
||||
for (j = 0; j < 4; j++)
|
||||
{
|
||||
evas_map_point_coord_set(m, j,
|
||||
c->side[i].pt[j].x + x,
|
||||
c->side[i].pt[j].y + y,
|
||||
c->side[i].pt[j].z + z);
|
||||
evas_map_point_image_uv_set(m, j,
|
||||
c->side[i].pt[j].u,
|
||||
c->side[i].pt[j].v);
|
||||
evas_map_point_color_set(m, j, 255, 255, 255, 255);
|
||||
}
|
||||
evas_map_util_3d_rotate(m, dx, dy, dz, x, y, z);
|
||||
evas_map_util_3d_lighting(m, -1000, -1000, -1000,
|
||||
255, 255, 255,
|
||||
20, 20, 20);
|
||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
|
||||
if (evas_map_util_clockwise_get(m))
|
||||
{
|
||||
eo_do(c->side[i].o,
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
else
|
||||
{
|
||||
eo_do(c->side[i].o, evas_obj_visibility_set(EINA_FALSE));
|
||||
}
|
||||
|
||||
order[i] = i;
|
||||
for (j = 0; j < 4; j++)
|
||||
evas_map_point_coord_get(m, j, NULL, NULL, &(tz[j]));
|
||||
mz[i] = (tz[0] + tz[1] + tz[2] + tz[3]) / 4;
|
||||
}
|
||||
sorted = 0;
|
||||
do
|
||||
{
|
||||
sorted = 1;
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
if (mz[order[i]] > mz[order[i + 1]])
|
||||
{
|
||||
j = order[i];
|
||||
order[i] = order[i + 1];
|
||||
order[i + 1] = j;
|
||||
sorted = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (!sorted);
|
||||
|
||||
eo_do(c->side[order[0]].o, evas_obj_raise());
|
||||
for (i = 1; i < 6; i++)
|
||||
eo_do(c->side[order[i]].o, evas_obj_stack_below(c->side[order[i - 1]].o));
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_free(Cube *c)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
|
||||
free(c);
|
||||
}
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
cubes[0] = _cube_new(128, 128, 256);
|
||||
cubes[1] = _cube_new(256, 128, 128);
|
||||
cubes[2] = _cube_new(256, 256, 128);
|
||||
cubes[3] = _cube_new(128, 256, 128);
|
||||
cubes[4] = _cube_new(256, 256, 256);
|
||||
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
_cube_free(cubes[0]);
|
||||
_cube_free(cubes[1]);
|
||||
_cube_free(cubes[2]);
|
||||
_cube_free(cubes[3]);
|
||||
_cube_free(cubes[4]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
_cube_pos(cubes[0],
|
||||
(win_w / 2) - 640, (win_h / 2) - 256, 512,
|
||||
f / 2.0, f, f / 3.0);
|
||||
_cube_pos(cubes[1],
|
||||
(win_w / 2) + 512, (win_h / 2) - 128, 384,
|
||||
f / 3.0, f / 2.0, f / 4.0);
|
||||
_cube_pos(cubes[2],
|
||||
(win_w / 2) - 384, (win_h / 2) + 128, 256,
|
||||
f / 2.0, f / 3.0, f);
|
||||
_cube_pos(cubes[3],
|
||||
(win_w / 2) + 256, (win_h / 2) + 64, 128,
|
||||
f, f / 5.0, f / 2.0);
|
||||
_cube_pos(cubes[4],
|
||||
(win_w / 2), (win_h / 2), 0,
|
||||
f / 4.0, f / 3.0, f / 5.0);
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_2_cxx_start
|
||||
#define NAME "Image Map 3D 2"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,255 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_3_start
|
||||
#define NAME "Image Map 3D 3"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
typedef struct _Point
|
||||
{
|
||||
Evas_Coord x, y, z, u, v;
|
||||
} Point;
|
||||
|
||||
typedef struct _Side
|
||||
{
|
||||
Evas_Object *o;
|
||||
Point pt[4];
|
||||
} Side;
|
||||
|
||||
typedef struct _Cube
|
||||
{
|
||||
Side side[6];
|
||||
} Cube;
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Cube *cubes[5];
|
||||
|
||||
#define POINT(n, p, xx, yy, zz, uu, vv) \
|
||||
c->side[n].pt[p].x = xx; \
|
||||
c->side[n].pt[p].y = yy; \
|
||||
c->side[n].pt[p].z = zz; \
|
||||
c->side[n].pt[p].u = uu; \
|
||||
c->side[n].pt[p].v = vv
|
||||
|
||||
static Cube *
|
||||
_cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||
{
|
||||
Cube *c;
|
||||
int i;
|
||||
|
||||
w -= (w / 2);
|
||||
h -= (h / 2);
|
||||
d -= (d / 2);
|
||||
c = calloc(1, sizeof(Cube));
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Object *o;
|
||||
char buf[256];
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
c->side[i].o = o;
|
||||
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path(buf), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 256, 256),
|
||||
evas_obj_size_set(256, 256),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||
POINT(0, 1, w, -h, -d, 256, 0);
|
||||
POINT(0, 2, w, h, -d, 256, 256);
|
||||
POINT(0, 3, -w, h, -d, 0, 256);
|
||||
|
||||
POINT(1, 0, w, -h, -d, 0, 0);
|
||||
POINT(1, 1, w, -h, d, 256, 0);
|
||||
POINT(1, 2, w, h, d, 256, 256);
|
||||
POINT(1, 3, w, h, -d, 0, 256);
|
||||
|
||||
POINT(2, 0, w, -h, d, 0, 0);
|
||||
POINT(2, 1, -w, -h, d, 256, 0);
|
||||
POINT(2, 2, -w, h, d, 256, 256);
|
||||
POINT(2, 3, w, h, d, 0, 256);
|
||||
|
||||
POINT(3, 0, -w, -h, d, 0, 0);
|
||||
POINT(3, 1, -w, -h, -d, 256, 0);
|
||||
POINT(3, 2, -w, h, -d, 256, 256);
|
||||
POINT(3, 3, -w, h, d, 0, 256);
|
||||
|
||||
POINT(4, 0, -w, -h, d, 0, 0);
|
||||
POINT(4, 1, w, -h, d, 256, 0);
|
||||
POINT(4, 2, w, -h, -d, 256, 256);
|
||||
POINT(4, 3, -w, -h, -d, 0, 256);
|
||||
|
||||
POINT(5, 0, -w, h, -d, 0, 0);
|
||||
POINT(5, 1, w, h, -d, 256, 0);
|
||||
POINT(5, 2, w, h, d, 256, 256);
|
||||
POINT(5, 3, -w, h, d, 0, 256);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_pos(Cube *c,
|
||||
Evas_Coord x, Evas_Coord y, Evas_Coord z,
|
||||
double dx, double dy, double dz)
|
||||
{
|
||||
static Evas_Map *m = NULL;
|
||||
int i, j, order[6], sorted;
|
||||
Evas_Coord mz[6];
|
||||
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Coord tz[4];
|
||||
|
||||
for (j = 0; j < 4; j++)
|
||||
{
|
||||
evas_map_point_coord_set(m, j,
|
||||
c->side[i].pt[j].x + x,
|
||||
c->side[i].pt[j].y + y,
|
||||
c->side[i].pt[j].z + z);
|
||||
evas_map_point_image_uv_set(m, j,
|
||||
c->side[i].pt[j].u,
|
||||
c->side[i].pt[j].v);
|
||||
evas_map_point_color_set(m, j, 255, 255, 255, 128);
|
||||
}
|
||||
evas_map_util_3d_rotate(m, dx, dy, dz, x, y, z);
|
||||
evas_map_util_3d_lighting(m, -1000, -1000, -1000,
|
||||
255, 255, 255,
|
||||
20, 20, 20);
|
||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
|
||||
eo_do(c->side[i].o,
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
|
||||
order[i] = i;
|
||||
for (j = 0; j < 4; j++)
|
||||
evas_map_point_coord_get(m, j, NULL, NULL, &(tz[j]));
|
||||
mz[i] = (tz[0] + tz[1] + tz[2] + tz[3]) / 4;
|
||||
}
|
||||
sorted = 0;
|
||||
do
|
||||
{
|
||||
sorted = 1;
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
if (mz[order[i]] > mz[order[i + 1]])
|
||||
{
|
||||
j = order[i];
|
||||
order[i] = order[i + 1];
|
||||
order[i + 1] = j;
|
||||
sorted = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (!sorted);
|
||||
|
||||
eo_do(c->side[order[0]].o, evas_obj_raise());
|
||||
for (i = 1; i < 6; i++)
|
||||
eo_do(c->side[order[i]].o, evas_obj_stack_below(c->side[order[i - 1]].o));
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_free(Cube *c)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
|
||||
free(c);
|
||||
}
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
cubes[0] = _cube_new(128, 128, 256);
|
||||
cubes[1] = _cube_new(256, 128, 128);
|
||||
cubes[2] = _cube_new(256, 256, 128);
|
||||
cubes[3] = _cube_new(128, 256, 128);
|
||||
cubes[4] = _cube_new(256, 256, 256);
|
||||
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
_cube_free(cubes[0]);
|
||||
_cube_free(cubes[1]);
|
||||
_cube_free(cubes[2]);
|
||||
_cube_free(cubes[3]);
|
||||
_cube_free(cubes[4]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
_cube_pos(cubes[0],
|
||||
(win_w / 2) - 640, (win_h / 2) - 256, 512,
|
||||
f / 2.0, f, f / 3.0);
|
||||
_cube_pos(cubes[1],
|
||||
(win_w / 2) + 512, (win_h / 2) - 128, 384,
|
||||
f / 3.0, f / 2.0, f / 4.0);
|
||||
_cube_pos(cubes[2],
|
||||
(win_w / 2) - 384, (win_h / 2) + 128, 256,
|
||||
f / 2.0, f / 3.0, f);
|
||||
_cube_pos(cubes[3],
|
||||
(win_w / 2) + 256, (win_h / 2) + 64, 128,
|
||||
f, f / 5.0, f / 2.0);
|
||||
_cube_pos(cubes[4],
|
||||
(win_w / 2), (win_h / 2), 0,
|
||||
f / 4.0, f / 3.0, f / 5.0);
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_3_cxx_start
|
||||
#define NAME "Image Map 3D 3"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,253 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_4_start
|
||||
#define NAME "Image Map 3D 4"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
typedef struct _Point
|
||||
{
|
||||
Evas_Coord x, y, z, u, v;
|
||||
} Point;
|
||||
|
||||
typedef struct _Side
|
||||
{
|
||||
Evas_Object *o;
|
||||
Point pt[4];
|
||||
} Side;
|
||||
|
||||
typedef struct _Cube
|
||||
{
|
||||
Side side[6];
|
||||
} Cube;
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Cube *cubes[5];
|
||||
|
||||
#define POINT(n, p, xx, yy, zz, uu, vv) \
|
||||
c->side[n].pt[p].x = xx; \
|
||||
c->side[n].pt[p].y = yy; \
|
||||
c->side[n].pt[p].z = zz; \
|
||||
c->side[n].pt[p].u = uu; \
|
||||
c->side[n].pt[p].v = vv
|
||||
|
||||
static Cube *
|
||||
_cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||
{
|
||||
Cube *c;
|
||||
int i;
|
||||
|
||||
w -= (w / 2);
|
||||
h -= (h / 2);
|
||||
d -= (d / 2);
|
||||
c = calloc(1, sizeof(Cube));
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Object *o;
|
||||
char buf[256];
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
c->side[i].o = o;
|
||||
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path(buf), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 256, 256),
|
||||
evas_obj_size_set(256, 256),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||
POINT(0, 1, w, -h, -d, 256, 0);
|
||||
POINT(0, 2, w, h, -d, 256, 256);
|
||||
POINT(0, 3, -w, h, -d, 0, 256);
|
||||
|
||||
POINT(1, 0, w, -h, -d, 0, 0);
|
||||
POINT(1, 1, w, -h, d, 256, 0);
|
||||
POINT(1, 2, w, h, d, 256, 256);
|
||||
POINT(1, 3, w, h, -d, 0, 256);
|
||||
|
||||
POINT(2, 0, w, -h, d, 0, 0);
|
||||
POINT(2, 1, -w, -h, d, 256, 0);
|
||||
POINT(2, 2, -w, h, d, 256, 256);
|
||||
POINT(2, 3, w, h, d, 0, 256);
|
||||
|
||||
POINT(3, 0, -w, -h, d, 0, 0);
|
||||
POINT(3, 1, -w, -h, -d, 256, 0);
|
||||
POINT(3, 2, -w, h, -d, 256, 256);
|
||||
POINT(3, 3, -w, h, d, 0, 256);
|
||||
|
||||
POINT(4, 0, -w, -h, d, 0, 0);
|
||||
POINT(4, 1, w, -h, d, 256, 0);
|
||||
POINT(4, 2, w, -h, -d, 256, 256);
|
||||
POINT(4, 3, -w, -h, -d, 0, 256);
|
||||
|
||||
POINT(5, 0, -w, h, -d, 0, 0);
|
||||
POINT(5, 1, w, h, -d, 256, 0);
|
||||
POINT(5, 2, w, h, d, 256, 256);
|
||||
POINT(5, 3, -w, h, d, 0, 256);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_pos(Cube *c,
|
||||
Evas_Coord x, Evas_Coord y, Evas_Coord z,
|
||||
double dx, double dy, double dz)
|
||||
{
|
||||
static Evas_Map *m = NULL;
|
||||
int i, j, order[6], sorted;
|
||||
Evas_Coord mz[6];
|
||||
|
||||
if (!m) m = evas_map_new(4);
|
||||
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Coord tz[4];
|
||||
|
||||
for (j = 0; j < 4; j++)
|
||||
{
|
||||
evas_map_point_coord_set(m, j,
|
||||
c->side[i].pt[j].x + x,
|
||||
c->side[i].pt[j].y + y,
|
||||
c->side[i].pt[j].z + z);
|
||||
evas_map_point_image_uv_set(m, j,
|
||||
c->side[i].pt[j].u,
|
||||
c->side[i].pt[j].v);
|
||||
evas_map_point_color_set(m, j, 255, 255, 255, 128);
|
||||
}
|
||||
evas_map_util_3d_rotate(m, dx, dy, dz, x, y, z);
|
||||
evas_map_util_3d_lighting(m, -1000, -1000, -1000,
|
||||
255, 255, 255,
|
||||
20, 20, 20);
|
||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
|
||||
eo_do(c->side[i].o,
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
|
||||
order[i] = i;
|
||||
for (j = 0; j < 4; j++)
|
||||
evas_map_point_coord_get(m, j, NULL, NULL, &(tz[j]));
|
||||
mz[i] = (tz[0] + tz[1] + tz[2] + tz[3]) / 4;
|
||||
}
|
||||
sorted = 0;
|
||||
do
|
||||
{
|
||||
sorted = 1;
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
if (mz[order[i]] > mz[order[i + 1]])
|
||||
{
|
||||
j = order[i];
|
||||
order[i] = order[i + 1];
|
||||
order[i + 1] = j;
|
||||
sorted = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (!sorted);
|
||||
|
||||
eo_do(c->side[order[0]].o, evas_obj_raise());
|
||||
for (i = 1; i < 6; i++)
|
||||
eo_do(c->side[order[i]].o, evas_obj_stack_below(c->side[order[i - 1]].o));
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_free(Cube *c)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
|
||||
free(c);
|
||||
}
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
cubes[0] = _cube_new(128, 128, 256);
|
||||
cubes[1] = _cube_new(256, 128, 128);
|
||||
cubes[2] = _cube_new(256, 256, 128);
|
||||
cubes[3] = _cube_new(128, 256, 128);
|
||||
cubes[4] = _cube_new(256, 256, 256);
|
||||
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
_cube_free(cubes[0]);
|
||||
_cube_free(cubes[1]);
|
||||
_cube_free(cubes[2]);
|
||||
_cube_free(cubes[3]);
|
||||
_cube_free(cubes[4]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
_cube_pos(cubes[0],
|
||||
(win_w / 2) - 640, (win_h / 2) - 256, 512,
|
||||
f / 2.0, f, f / 3.0);
|
||||
_cube_pos(cubes[1],
|
||||
(win_w / 2) + 512, (win_h / 2) - 128, 384,
|
||||
f / 3.0, f / 2.0, f / 4.0);
|
||||
_cube_pos(cubes[2],
|
||||
(win_w / 2) - 384, (win_h / 2) + 128, 256,
|
||||
f / 2.0, f / 3.0, f);
|
||||
_cube_pos(cubes[3],
|
||||
(win_w / 2) + 256, (win_h / 2) + 64, 128,
|
||||
f, f / 5.0, f / 2.0);
|
||||
_cube_pos(cubes[4],
|
||||
(win_w / 2), (win_h / 2), 0,
|
||||
f / 4.0, f / 3.0, f / 5.0);
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_4_cxx_start
|
||||
#define NAME "Image Map 3D 4"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,243 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_5_start
|
||||
#define NAME "Image Map 3D 5"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
typedef struct _Point
|
||||
{
|
||||
Evas_Coord x, y, z, u, v;
|
||||
} Point;
|
||||
|
||||
typedef struct _Side
|
||||
{
|
||||
Evas_Object *o;
|
||||
Point pt[4];
|
||||
} Side;
|
||||
|
||||
typedef struct _Cube
|
||||
{
|
||||
Side side[6];
|
||||
} Cube;
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Cube *cubes[1];
|
||||
|
||||
#define POINT(n, p, xx, yy, zz, uu, vv) \
|
||||
c->side[n].pt[p].x = xx; \
|
||||
c->side[n].pt[p].y = yy; \
|
||||
c->side[n].pt[p].z = zz; \
|
||||
c->side[n].pt[p].u = uu; \
|
||||
c->side[n].pt[p].v = vv
|
||||
|
||||
static Cube *
|
||||
_cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||
{
|
||||
Cube *c;
|
||||
int i;
|
||||
|
||||
w -= (w / 2);
|
||||
h -= (h / 2);
|
||||
d -= (d / 2);
|
||||
c = calloc(1, sizeof(Cube));
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Object *o;
|
||||
char buf[256];
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
c->side[i].o = o;
|
||||
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path(buf), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 720, 420),
|
||||
evas_obj_size_set(720, 420),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||
POINT(0, 1, w, -h, -d, 720, 0);
|
||||
POINT(0, 2, w, h, -d, 720, 420);
|
||||
POINT(0, 3, -w, h, -d, 0, 420);
|
||||
|
||||
POINT(1, 0, w, -h, -d, 0, 0);
|
||||
POINT(1, 1, w, -h, d, 720, 0);
|
||||
POINT(1, 2, w, h, d, 720, 420);
|
||||
POINT(1, 3, w, h, -d, 0, 420);
|
||||
|
||||
POINT(2, 0, w, -h, d, 0, 0);
|
||||
POINT(2, 1, -w, -h, d, 720, 0);
|
||||
POINT(2, 2, -w, h, d, 720, 420);
|
||||
POINT(2, 3, w, h, d, 0, 420);
|
||||
|
||||
POINT(3, 0, -w, -h, d, 0, 0);
|
||||
POINT(3, 1, -w, -h, -d, 720, 0);
|
||||
POINT(3, 2, -w, h, -d, 720, 420);
|
||||
POINT(3, 3, -w, h, d, 0, 420);
|
||||
|
||||
POINT(4, 0, -w, -h, d, 0, 0);
|
||||
POINT(4, 1, w, -h, d, 720, 0);
|
||||
POINT(4, 2, w, -h, -d, 720, 420);
|
||||
POINT(4, 3, -w, -h, -d, 0, 420);
|
||||
|
||||
POINT(5, 0, -w, h, -d, 0, 0);
|
||||
POINT(5, 1, w, h, -d, 720, 0);
|
||||
POINT(5, 2, w, h, d, 720, 420);
|
||||
POINT(5, 3, -w, h, d, 0, 420);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_pos(Cube *c,
|
||||
Evas_Coord x, Evas_Coord y, Evas_Coord z,
|
||||
double dx, double dy, double dz)
|
||||
{
|
||||
static Evas_Map *m = NULL;
|
||||
int i, j, order[6], sorted;
|
||||
Evas_Coord mz[6];
|
||||
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Coord tz[4];
|
||||
|
||||
for (j = 0; j < 4; j++)
|
||||
{
|
||||
evas_map_point_coord_set(m, j,
|
||||
c->side[i].pt[j].x + x,
|
||||
c->side[i].pt[j].y + y,
|
||||
c->side[i].pt[j].z + z);
|
||||
evas_map_point_image_uv_set(m, j,
|
||||
c->side[i].pt[j].u,
|
||||
c->side[i].pt[j].v);
|
||||
evas_map_point_color_set(m, j, 255, 255, 255, 255);
|
||||
}
|
||||
evas_map_util_3d_rotate(m, dx, dy, dz, x, y, z);
|
||||
evas_map_util_3d_lighting(m, -1000, win_h / 2, -1000,
|
||||
255, 255, 255,
|
||||
20, 20, 20);
|
||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -360, 720);
|
||||
if (evas_map_util_clockwise_get(m))
|
||||
{
|
||||
eo_do(c->side[i].o,
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
else
|
||||
{
|
||||
eo_do(c->side[i].o, evas_obj_visibility_set(EINA_FALSE));
|
||||
}
|
||||
|
||||
order[i] = i;
|
||||
for (j = 0; j < 4; j++)
|
||||
evas_map_point_coord_get(m, j, NULL, NULL, &(tz[j]));
|
||||
mz[i] = (tz[0] + tz[1] + tz[2] + tz[3]) / 4;
|
||||
}
|
||||
sorted = 0;
|
||||
do
|
||||
{
|
||||
sorted = 1;
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
if (mz[order[i]] > mz[order[i + 1]])
|
||||
{
|
||||
j = order[i];
|
||||
order[i] = order[i + 1];
|
||||
order[i + 1] = j;
|
||||
sorted = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (!sorted);
|
||||
|
||||
eo_do(c->side[order[0]].o, evas_obj_raise());
|
||||
for (i = 1; i < 6; i++)
|
||||
eo_do(c->side[order[i]].o, evas_obj_stack_below(c->side[order[i - 1]].o));
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_free(Cube *c)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
|
||||
free(c);
|
||||
}
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
cubes[0] = _cube_new(720, 420, 720);
|
||||
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
_cube_free(cubes[0]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
_cube_pos(cubes[0],
|
||||
(win_w / 2), (win_h / 2), 0,
|
||||
0, f, 0);
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_5_cxx_start
|
||||
#define NAME "Image Map 3D 5"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,240 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_6_start
|
||||
#define NAME "Image Map 3D 6"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
typedef struct _Point
|
||||
{
|
||||
Evas_Coord x, y, z, u, v;
|
||||
} Point;
|
||||
|
||||
typedef struct _Side
|
||||
{
|
||||
Evas_Object *o;
|
||||
Point pt[4];
|
||||
} Side;
|
||||
|
||||
typedef struct _Cube
|
||||
{
|
||||
Side side[6];
|
||||
} Cube;
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Cube *cubes[1];
|
||||
|
||||
#define POINT(n, p, xx, yy, zz, uu, vv) \
|
||||
c->side[n].pt[p].x = xx; \
|
||||
c->side[n].pt[p].y = yy; \
|
||||
c->side[n].pt[p].z = zz; \
|
||||
c->side[n].pt[p].u = uu; \
|
||||
c->side[n].pt[p].v = vv
|
||||
|
||||
static Cube *
|
||||
_cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
|
||||
{
|
||||
Cube *c;
|
||||
int i;
|
||||
|
||||
w -= (w / 2);
|
||||
h -= (h / 2);
|
||||
d -= (d / 2);
|
||||
c = calloc(1, sizeof(Cube));
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Object *o;
|
||||
char buf[256];
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
c->side[i].o = o;
|
||||
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path(buf), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 720, 420),
|
||||
evas_obj_size_set(720, 420),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
POINT(0, 0, -w, -h, -d, 0, 0);
|
||||
POINT(0, 1, w, -h, -d, 720, 0);
|
||||
POINT(0, 2, w, h, -d, 720, 420);
|
||||
POINT(0, 3, -w, h, -d, 0, 420);
|
||||
|
||||
POINT(1, 0, w, -h, -d, 0, 0);
|
||||
POINT(1, 1, w, -h, d, 720, 0);
|
||||
POINT(1, 2, w, h, d, 720, 420);
|
||||
POINT(1, 3, w, h, -d, 0, 420);
|
||||
|
||||
POINT(2, 0, w, -h, d, 0, 0);
|
||||
POINT(2, 1, -w, -h, d, 720, 0);
|
||||
POINT(2, 2, -w, h, d, 720, 420);
|
||||
POINT(2, 3, w, h, d, 0, 420);
|
||||
|
||||
POINT(3, 0, -w, -h, d, 0, 0);
|
||||
POINT(3, 1, -w, -h, -d, 720, 0);
|
||||
POINT(3, 2, -w, h, -d, 720, 420);
|
||||
POINT(3, 3, -w, h, d, 0, 420);
|
||||
|
||||
POINT(4, 0, -w, -h, d, 0, 0);
|
||||
POINT(4, 1, w, -h, d, 720, 0);
|
||||
POINT(4, 2, w, -h, -d, 720, 420);
|
||||
POINT(4, 3, -w, -h, -d, 0, 420);
|
||||
|
||||
POINT(5, 0, -w, h, -d, 0, 0);
|
||||
POINT(5, 1, w, h, -d, 720, 0);
|
||||
POINT(5, 2, w, h, d, 720, 420);
|
||||
POINT(5, 3, -w, h, d, 0, 420);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_pos(Cube *c,
|
||||
Evas_Coord x, Evas_Coord y, Evas_Coord z,
|
||||
double dx, double dy, double dz)
|
||||
{
|
||||
static Evas_Map *m = NULL;
|
||||
int i, j, order[6], sorted;
|
||||
Evas_Coord mz[6];
|
||||
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
Evas_Coord tz[4];
|
||||
|
||||
for (j = 0; j < 4; j++)
|
||||
{
|
||||
evas_map_point_coord_set(m, j,
|
||||
c->side[i].pt[j].x + x,
|
||||
c->side[i].pt[j].y + y,
|
||||
c->side[i].pt[j].z + z);
|
||||
evas_map_point_image_uv_set(m, j,
|
||||
c->side[i].pt[j].u,
|
||||
c->side[i].pt[j].v);
|
||||
evas_map_point_color_set(m, j, 255, 255, 255, 255);
|
||||
}
|
||||
evas_map_util_3d_rotate(m, dx, dy, dz, x, y, z);
|
||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -360, 720);
|
||||
if (evas_map_util_clockwise_get(m))
|
||||
{
|
||||
eo_do(c->side[i].o,
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
else
|
||||
{
|
||||
eo_do(c->side[i].o, evas_obj_visibility_set(EINA_FALSE));
|
||||
}
|
||||
|
||||
order[i] = i;
|
||||
for (j = 0; j < 4; j++)
|
||||
evas_map_point_coord_get(m, j, NULL, NULL, &(tz[j]));
|
||||
mz[i] = (tz[0] + tz[1] + tz[2] + tz[3]) / 4;
|
||||
}
|
||||
sorted = 0;
|
||||
do
|
||||
{
|
||||
sorted = 1;
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
if (mz[order[i]] > mz[order[i + 1]])
|
||||
{
|
||||
j = order[i];
|
||||
order[i] = order[i + 1];
|
||||
order[i + 1] = j;
|
||||
sorted = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (!sorted);
|
||||
|
||||
eo_do(c->side[order[0]].o, evas_obj_raise());
|
||||
for (i = 1; i < 6; i++)
|
||||
eo_do(c->side[order[i]].o, evas_obj_stack_below(c->side[order[i - 1]].o));
|
||||
}
|
||||
|
||||
static void
|
||||
_cube_free(Cube *c)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
|
||||
free(c);
|
||||
}
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
cubes[0] = _cube_new(720, 420, 720);
|
||||
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
_cube_free(cubes[0]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
_cube_pos(cubes[0],
|
||||
(win_w / 2), (win_h / 2), 0,
|
||||
0, f, 0);
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_6_cxx_start
|
||||
#define NAME "Image Map 3D 6"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,234 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_flow_start
|
||||
#define NAME "Image Map 3D Flow"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
#define CNUM 48
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[CNUM];
|
||||
static Evas_Object *o_reflec[CNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < CNUM; i++)
|
||||
{
|
||||
char buf[256];
|
||||
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path(buf), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 256, 256),
|
||||
evas_obj_size_set(256, 256),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_reflec[i] = o;
|
||||
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
|
||||
eo_do(o,
|
||||
efl_file_set(build_path(buf), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 256, 256),
|
||||
evas_obj_size_set(256, 256),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < CNUM; i++)
|
||||
{
|
||||
eo_del(o_images[i]);
|
||||
eo_del(o_reflec[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, xx, yy, w, h, c, z;
|
||||
int center = 150;
|
||||
double ang, n;
|
||||
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
|
||||
for (i = 0; i < CNUM; i++)
|
||||
{
|
||||
x = (win_w / 2);
|
||||
y = (win_h / 2);
|
||||
w = 256;
|
||||
h = 256;
|
||||
|
||||
c = (i - (CNUM / 2)) * (w / 4);
|
||||
c += (f % (6 * (w / 4)));
|
||||
|
||||
ang = (double)c / (double)center;
|
||||
if (ang > 0.0) ang = ang * ang;
|
||||
else ang = -ang * ang;
|
||||
ang *= -90.0;
|
||||
if (ang > 90.0) ang = 90.0;
|
||||
else if (ang < -90.0) ang = -90.0;
|
||||
|
||||
if ((c > (-center)) && (c <= (center)))
|
||||
{
|
||||
n = (double)c / (double)center;
|
||||
if (c > 0)
|
||||
{
|
||||
n = 1.0 - n;
|
||||
n = 1.0 - (n * n);
|
||||
}
|
||||
else
|
||||
{
|
||||
n = -(-1.0 - n);
|
||||
n = -(1.0 - (n * n));
|
||||
}
|
||||
c = n * center * 2.0;
|
||||
}
|
||||
else if (c <= (-center))
|
||||
c = (c + center) - (center * 2);
|
||||
else if (c > (center))
|
||||
c = (c - center) + (center * 2);
|
||||
|
||||
z = 0;
|
||||
if ((c > (-center)) && (c <= (center)))
|
||||
{
|
||||
z = (c * (w / 2)) / center;
|
||||
if (z < 0) z = -z;
|
||||
z = (w / 2) - z;
|
||||
}
|
||||
|
||||
x += c;
|
||||
|
||||
x -= (w / 2);
|
||||
xx = x + w;
|
||||
|
||||
y -= (h / 2);
|
||||
yy = y + h;
|
||||
|
||||
if (c <= 0)
|
||||
{
|
||||
eo_do(o_images[i], evas_obj_raise());
|
||||
eo_do(o_reflec[i], evas_obj_raise());
|
||||
}
|
||||
else
|
||||
{
|
||||
eo_do(o_images[i], evas_obj_lower());
|
||||
eo_do(o_reflec[i], evas_obj_lower());
|
||||
}
|
||||
|
||||
evas_map_point_coord_set (m, 0, x, y, -z);
|
||||
evas_map_point_image_uv_set(m, 0, 0, 0);
|
||||
evas_map_point_color_set (m, 0, 255, 255, 255, 255);
|
||||
|
||||
evas_map_point_coord_set (m, 1, xx, y, -z);
|
||||
evas_map_point_image_uv_set(m, 1, 256, 0);
|
||||
evas_map_point_color_set (m, 1, 255, 255, 255, 255);
|
||||
|
||||
evas_map_point_coord_set (m, 2, xx, yy, -z);
|
||||
evas_map_point_image_uv_set(m, 2, 256, 256);
|
||||
evas_map_point_color_set (m, 2, 255, 255, 255, 255);
|
||||
|
||||
evas_map_point_coord_set (m, 3, x, yy, -z);
|
||||
evas_map_point_image_uv_set(m, 3, 0, 256);
|
||||
evas_map_point_color_set (m, 3, 255, 255, 255, 255);
|
||||
|
||||
evas_map_util_3d_rotate(m, 0, ang, 0,
|
||||
x + (w / 2), y + (h / 2), 0);
|
||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
|
||||
evas_map_point_coord_set (m, 0, x, yy, -z);
|
||||
evas_map_point_image_uv_set(m, 0, 0, 256);
|
||||
evas_map_point_color_set (m, 0, 128, 128, 128, 128);
|
||||
|
||||
evas_map_point_coord_set (m, 1, xx, yy, -z);
|
||||
evas_map_point_image_uv_set(m, 1, 256, 256);
|
||||
evas_map_point_color_set (m, 1, 128, 128, 128, 128);
|
||||
|
||||
evas_map_point_coord_set (m, 2, xx, yy + h, -z);
|
||||
evas_map_point_image_uv_set(m, 2, 256, 0);
|
||||
evas_map_point_color_set (m, 2, 0, 0, 0, 0);
|
||||
|
||||
evas_map_point_coord_set (m, 3, x, yy + h, -z);
|
||||
evas_map_point_image_uv_set(m, 3, 0, 0);
|
||||
evas_map_point_color_set (m, 3, 0, 0, 0, 0);
|
||||
|
||||
evas_map_util_3d_rotate(m, 0, ang, 0,
|
||||
x + (w / 2), y + (h / 2), 0);
|
||||
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
|
||||
|
||||
eo_do(o_reflec[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_3d_flow_cxx_start
|
||||
#define NAME "Image Map 3D Flow"
|
||||
#define ICON "3d.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,119 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_alpha_nearest_rotate_start
|
||||
#define NAME "Image Map Color Alpha Nearest Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
|
||||
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
|
||||
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
|
||||
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_alpha_nearest_rotate_cxx_start
|
||||
#define NAME "Image Map Color Alpha Nearest Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,119 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_alpha_nearest_solid_rotate_start
|
||||
#define NAME "Image Map Color Alpha Nearest Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
|
||||
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
|
||||
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
|
||||
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_alpha_nearest_solid_rotate_cxx_start
|
||||
#define NAME "Image Map Color Alpha Nearest Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,117 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_alpha_rotate_start
|
||||
#define NAME "Image Map Color Alpha Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
|
||||
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
|
||||
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
|
||||
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_alpha_rotate_cxx_start
|
||||
#define NAME "Image Map Color Alpha Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,116 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_alpha_solid_rotate_start
|
||||
#define NAME "Image Map Color Alpha Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
|
||||
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
|
||||
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
|
||||
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_alpha_solid_rotate_cxx_start
|
||||
#define NAME "Image Map Color Alpha Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,119 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_nearest_rotate_start
|
||||
#define NAME "Image Map Color Nearest Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
|
||||
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
|
||||
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
|
||||
evas_map_point_color_set(m, 3, 0, 255, 0, 255);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_nearest_rotate_cxx_start
|
||||
#define NAME "Image Map Color Nearest Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,119 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_nearest_solid_rotate_start
|
||||
#define NAME "Image Map Color Nearest Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
|
||||
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
|
||||
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
|
||||
evas_map_point_color_set(m, 3, 0, 255, 0, 255);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_nearest_solid_rotate_cxx_start
|
||||
#define NAME "Image Map Color Nearest Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,117 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_rotate_start
|
||||
#define NAME "Image Map Color Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
|
||||
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
|
||||
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
|
||||
evas_map_point_color_set(m, 3, 0, 255, 0, 255);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_rotate_cxx_start
|
||||
#define NAME "Image Map Color Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,117 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_solid_rotate_start
|
||||
#define NAME "Image Map Color Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_point_color_set(m, 0, 255, 255, 255, 255);
|
||||
evas_map_point_color_set(m, 1, 255, 0, 0, 255);
|
||||
evas_map_point_color_set(m, 2, 0, 0, 255, 255);
|
||||
evas_map_point_color_set(m, 3, 0, 255, 0, 255);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_color_solid_rotate_cxx_start
|
||||
#define NAME "Image Map Color Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,114 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_nearest_rotate_start
|
||||
#define NAME "Image Map Nearest Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("logo.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_nearest_rotate_cxx_start
|
||||
#define NAME "Image Map Nearest Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,114 @@
|
|||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_nearest_solid_rotate_start
|
||||
#define NAME "Image Map Nearest Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
# include "main.h"
|
||||
|
||||
/* standard var */
|
||||
static int done = 0;
|
||||
|
||||
/* private data */
|
||||
static Evas_Object *o_images[OBNUM];
|
||||
|
||||
/* setup */
|
||||
static void _setup(void)
|
||||
{
|
||||
int i;
|
||||
Evas_Object *o;
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
||||
o_images[i] = o;
|
||||
eo_do(o,
|
||||
efl_file_set(build_path("image.png"), NULL),
|
||||
evas_obj_image_fill_set(0, 0, 120, 160),
|
||||
evas_obj_size_set(120, 160),
|
||||
efl_image_smooth_scale_set(0),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
}
|
||||
done = 0;
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
static void _cleanup(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
|
||||
}
|
||||
|
||||
/* loop - do things */
|
||||
static void _loop(double t, int f)
|
||||
{
|
||||
int i;
|
||||
static Evas_Map *m = NULL;
|
||||
Evas_Coord x, y, w, h;
|
||||
if (!m) m = evas_map_new(4);
|
||||
evas_map_smooth_set(m, 0);
|
||||
for (i = 0; i < (OBNUM / 2); i++)
|
||||
{
|
||||
w = 120;
|
||||
h = 160;
|
||||
x = (win_w / 2) - (w / 2);
|
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
|
||||
y = (win_h / 2) - (h / 2);
|
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
|
||||
|
||||
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
|
||||
|
||||
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
|
||||
|
||||
eo_do(o_images[i],
|
||||
evas_obj_map_enable_set(1),
|
||||
evas_obj_map_set(m));
|
||||
}
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
||||
/* prepend special key handlers if interactive (before STD) */
|
||||
static void _key(char *key)
|
||||
{
|
||||
KEY_STD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* template stuff - ignore */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef PROTO
|
||||
# ifndef UI
|
||||
void FNAME(void)
|
||||
{
|
||||
_setup();
|
||||
ui_func_set(_key, _loop);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
|
@ -0,0 +1,30 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
|
||||
/* metadata */
|
||||
#define FNAME image_map_nearest_solid_rotate_cxx_start
|
||||
#define NAME "Image Map Nearest Solid Rotate"
|
||||
#define ICON "map.png"
|
||||
|
||||
#ifdef UI
|
||||
_ui_menu_item_add(ICON, NAME, FNAME);
|
||||
#endif
|
||||
|
||||
#ifdef PROTO
|
||||
void FNAME(void);
|
||||
#endif
|
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL
|
||||
#undef FNAME
|
||||
#undef NAME
|
||||
#undef ICON
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue