summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-12-04 19:47:41 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-12-04 19:47:41 +0900
commit5c79b5d38fb59863b2aa444c61e58ab3b68dbe9b (patch)
treeef51b112eec4356293d5b29c36d973f219cce1b8
parent0a12352c3dd5d5a75f3b691b8a05b75efa6c8365 (diff)
evas/examples: fix warnings.
removed unused.
-rw-r--r--src/examples/evas/evas-3d-blending.c2
-rw-r--r--src/examples/evas/evas-3d-frustum.c10
2 files changed, 4 insertions, 8 deletions
diff --git a/src/examples/evas/evas-3d-blending.c b/src/examples/evas/evas-3d-blending.c
index 86d78b6..2007974 100644
--- a/src/examples/evas/evas-3d-blending.c
+++ b/src/examples/evas/evas-3d-blending.c
@@ -99,8 +99,6 @@ _on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *eo EINA_UNUSED, void
99{ 99{
100 Scene_Data *scene = (Scene_Data *)data; 100 Scene_Data *scene = (Scene_Data *)data;
101 Evas_Event_Key_Down *ev = event_info; 101 Evas_Event_Key_Down *ev = event_info;
102 Eina_Bool frustum;
103 Evas_Real x, y, z;
104 102
105 if (!strcmp("Up", ev->key)) 103 if (!strcmp("Up", ev->key))
106 func1++; 104 func1++;
diff --git a/src/examples/evas/evas-3d-frustum.c b/src/examples/evas/evas-3d-frustum.c
index 3e88bd8..2ca525a 100644
--- a/src/examples/evas/evas-3d-frustum.c
+++ b/src/examples/evas/evas-3d-frustum.c
@@ -55,7 +55,7 @@ typedef struct _vec3
55} vec3; 55} vec3;
56 56
57static void 57static void
58_set_ball(Eo *mesh, double r, double x, double y, double z, int p, Evas_3D_Material *material); 58_set_ball(Eo *mesh, double r, double x, double y, double z, int p);
59 59
60static void 60static void
61_mesh_aabb(Eo *mesh_b, Eo *mesh_node); 61_mesh_aabb(Eo *mesh_b, Eo *mesh_node);
@@ -93,16 +93,15 @@ static Eina_Bool
93_redraw_bounding_object(void *data) 93_redraw_bounding_object(void *data)
94{ 94{
95 Evas_Real x, y, z; 95 Evas_Real x, y, z;
96 vec3 center, ref, temp;
97 Scene_Data *scene = (Scene_Data *)data; 96 Scene_Data *scene = (Scene_Data *)data;
98 97
99 eo_do(scene->mesh_node_model, evas_3d_node_bounding_sphere_get(&x, &y, &z, &radius)); 98 eo_do(scene->mesh_node_model, evas_3d_node_bounding_sphere_get(&x, &y, &z, &radius));
100 if (key == EVAS_3D_FRUSTUM_MODE_BSPHERE) 99 if (key == EVAS_3D_FRUSTUM_MODE_BSPHERE)
101 _set_ball(scene->mesh, radius, x, y, z, 100, scene->material); 100 _set_ball(scene->mesh, radius, x, y, z, 100);
102 else if (key == EVAS_3D_FRUSTUM_MODE_AABB) 101 else if (key == EVAS_3D_FRUSTUM_MODE_AABB)
103 _mesh_aabb(scene->mesh, scene->mesh_node_model); 102 _mesh_aabb(scene->mesh, scene->mesh_node_model);
104 else if (key == EVAS_3D_FRUSTUM_MODE_CENTRAL_POINT) 103 else if (key == EVAS_3D_FRUSTUM_MODE_CENTRAL_POINT)
105 _set_ball(scene->mesh, 1, x, y, z, 1, scene->material); 104 _set_ball(scene->mesh, 1, x, y, z, 1);
106 105
107 return ECORE_CALLBACK_RENEW; 106 return ECORE_CALLBACK_RENEW;
108} 107}
@@ -113,7 +112,6 @@ _on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *eo EINA_UNUSED, void
113 Scene_Data *scene = (Scene_Data *)data; 112 Scene_Data *scene = (Scene_Data *)data;
114 Evas_Event_Key_Down *ev = event_info; 113 Evas_Event_Key_Down *ev = event_info;
115 Eina_Bool frustum; 114 Eina_Bool frustum;
116 Evas_Real x, y, z;
117 115
118 if (!strcmp("w", ev->key)) 116 if (!strcmp("w", ev->key))
119 { 117 {
@@ -405,7 +403,7 @@ _mesh_aabb(Eo *mesh_b, Eo *mesh_node)
405} 403}
406 404
407static void 405static void
408_set_ball(Eo *mesh, double r, double x, double y, double z, int p, Evas_3D_Material *material) 406_set_ball(Eo *mesh, double r, double x, double y, double z, int p)
409{ 407{
410 int vcount, icount, vccount, i, j; 408 int vcount, icount, vccount, i, j;
411 double dtheta, dfi, sinth, costh, fi, theta, sinfi, cosfi; 409 double dtheta, dfi, sinth, costh, fi, theta, sinfi, cosfi;