summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Devichev <b.devichev@samsung.com>2014-12-22 16:16:19 +0200
committerBogdan Devichev <b.devichev@samsung.com>2014-12-22 16:16:19 +0200
commitd347ff43ae8aed7ac21d2e0c82704a26f796f926 (patch)
tree2a716c2a7ac68d43aee332b40ad91d75db17c47f
parent5adf8c44d91dec53040c8a483fc793f6dad97154 (diff)
Model_save_load. Step 12. Evas 3d mesh is inherited from Efl.File. (functions file_set and save)
-rw-r--r--src/examples/evas/evas-3d-aabb.c2
-rw-r--r--src/examples/evas/evas-3d-eet.c8
-rw-r--r--src/examples/evas/evas-3d-frustum.c2
-rw-r--r--src/examples/evas/evas-3d-md2.c3
-rw-r--r--src/examples/evas/evas-3d-obj.c6
-rw-r--r--src/examples/evas/evas-3d-ply.c16
-rw-r--r--src/examples/evas/evas-3d-shadows.c2
-rw-r--r--src/examples/evas/shooter/evas-3d-shooter.c9
-rw-r--r--src/lib/evas/canvas/evas_3d_mesh.c35
-rw-r--r--src/lib/evas/canvas/evas_3d_mesh.eo34
-rw-r--r--src/tests/evas/evas_test_mesh.c8
11 files changed, 57 insertions, 68 deletions
diff --git a/src/examples/evas/evas-3d-aabb.c b/src/examples/evas/evas-3d-aabb.c
index 6210fa2b49..22b3e321b9 100644
--- a/src/examples/evas/evas-3d-aabb.c
+++ b/src/examples/evas/evas-3d-aabb.c
@@ -226,8 +226,8 @@ main(void)
226 mesh = eo_add(EVAS_3D_MESH_CLASS, evas); 226 mesh = eo_add(EVAS_3D_MESH_CLASS, evas);
227 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 227 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
228 228
229 evas_3d_mesh_file_set(mesh, "sonic.md2", NULL);
229 eo_do(mesh, 230 eo_do(mesh,
230 evas_3d_mesh_file_set("sonic.md2", NULL),
231 evas_3d_mesh_frame_material_set(0, material), 231 evas_3d_mesh_frame_material_set(0, material),
232 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); 232 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG));
233 233
diff --git a/src/examples/evas/evas-3d-eet.c b/src/examples/evas/evas-3d-eet.c
index 96ab16bf29..9993818db4 100644
--- a/src/examples/evas/evas-3d-eet.c
+++ b/src/examples/evas/evas-3d-eet.c
@@ -150,8 +150,9 @@ main(void)
150 mesh2 = eo_add(EVAS_3D_MESH_CLASS, evas); 150 mesh2 = eo_add(EVAS_3D_MESH_CLASS, evas);
151 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 151 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
152 152
153 evas_3d_mesh_file_set(mesh, "sonic.md2", NULL);
154
153 eo_do(mesh, 155 eo_do(mesh,
154 evas_3d_mesh_file_set("sonic.md2", NULL),
155 evas_3d_mesh_frame_material_set(0, material), 156 evas_3d_mesh_frame_material_set(0, material),
156 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); 157 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG));
157 158
@@ -168,11 +169,10 @@ main(void)
168 0.50, 0.00, 0.50, 0.30), 169 0.50, 0.00, 0.50, 0.30),
169 evas_3d_material_shininess_set(50.0)); 170 evas_3d_material_shininess_set(50.0));
170 171
171 eo_do(mesh, 172 evas_3d_mesh_save(mesh, "saved_Sonic_EET.eet", NULL, NULL);
172 evas_3d_mesh_save("saved_Sonic_EET.eet", NULL)); 173 evas_3d_mesh_file_set(mesh2, "saved_Sonic_EET.eet", NULL);
173 174
174 eo_do(mesh2, 175 eo_do(mesh2,
175 evas_3d_mesh_file_set("saved_Sonic_EET.eet", NULL),
176 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); 176 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG));
177 177
178 mesh_node = eo_add(EVAS_3D_NODE_CLASS, evas, 178 mesh_node = eo_add(EVAS_3D_NODE_CLASS, evas,
diff --git a/src/examples/evas/evas-3d-frustum.c b/src/examples/evas/evas-3d-frustum.c
index 28b4ec4444..6b4c6db664 100644
--- a/src/examples/evas/evas-3d-frustum.c
+++ b/src/examples/evas/evas-3d-frustum.c
@@ -174,8 +174,8 @@ _mesh_setup_model(Scene_Data *data)
174 evas_3d_material_texture_set( EVAS_3D_MATERIAL_DIFFUSE, data->texture_model), 174 evas_3d_material_texture_set( EVAS_3D_MATERIAL_DIFFUSE, data->texture_model),
175 evas_3d_material_shininess_set(100.0)); 175 evas_3d_material_shininess_set(100.0));
176 176
177 evas_3d_mesh_file_set(data->mesh_model, "eagle.md2", NULL);
177 eo_do(data->mesh_model, 178 eo_do(data->mesh_model,
178 evas_3d_mesh_file_set("eagle.md2", NULL),
179 evas_3d_mesh_frame_material_set(0, data->material_model), 179 evas_3d_mesh_frame_material_set(0, data->material_model),
180 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_DIFFUSE)); 180 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_DIFFUSE));
181} 181}
diff --git a/src/examples/evas/evas-3d-md2.c b/src/examples/evas/evas-3d-md2.c
index 4b53c2e1c4..6417872f35 100644
--- a/src/examples/evas/evas-3d-md2.c
+++ b/src/examples/evas/evas-3d-md2.c
@@ -119,8 +119,9 @@ main(void)
119 mesh = eo_add(EVAS_3D_MESH_CLASS, evas); 119 mesh = eo_add(EVAS_3D_MESH_CLASS, evas);
120 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 120 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
121 121
122
123 evas_3d_mesh_file_set(mesh, "sonic.md2", NULL);
122 eo_do(mesh, 124 eo_do(mesh,
123 evas_3d_mesh_file_set("sonic.md2", NULL),
124 evas_3d_mesh_frame_material_set(0, material), 125 evas_3d_mesh_frame_material_set(0, material),
125 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); 126 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG));
126 127
diff --git a/src/examples/evas/evas-3d-obj.c b/src/examples/evas/evas-3d-obj.c
index d19a36db91..81f23cd0f0 100644
--- a/src/examples/evas/evas-3d-obj.c
+++ b/src/examples/evas/evas-3d-obj.c
@@ -7,7 +7,7 @@
7* and geometry to "saved_man.obj". 7* and geometry to "saved_man.obj".
8* 8*
9* @verbatim 9* @verbatim
10* gcc -o evas-3d-obj evas-3d-obj.c `pkg-config --libs --cflags evas ecore ecore-evas` 10* gcc -o evas-3d-obj evas-3d-obj.c `pkg-config --libs --cflags evas ecore ecore-evas eo`
11* @endverbatim 11* @endverbatim
12*/ 12*/
13 13
@@ -133,8 +133,8 @@ main(void)
133 mesh = eo_add(EVAS_3D_MESH_CLASS, evas); 133 mesh = eo_add(EVAS_3D_MESH_CLASS, evas);
134 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 134 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
135 135
136 evas_3d_mesh_file_set(mesh, "man_mesh.obj", NULL);
136 eo_do(mesh, 137 eo_do(mesh,
137 evas_3d_mesh_file_set("man_mesh.obj", NULL),
138 evas_3d_mesh_frame_material_set(0, material), 138 evas_3d_mesh_frame_material_set(0, material),
139 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); 139 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG));
140 140
@@ -159,7 +159,7 @@ main(void)
159 1.0, 1.0, 1.0, 1.0), 159 1.0, 1.0, 1.0, 1.0),
160 evas_3d_material_shininess_set(50.0)); 160 evas_3d_material_shininess_set(50.0));
161 161
162 eo_do(mesh, evas_3d_mesh_save("saved_man.obj", NULL)); 162 evas_3d_mesh_save(mesh, "saved_man.obj", NULL);
163 163
164 mesh_node = eo_add(EVAS_3D_NODE_CLASS, evas, 164 mesh_node = eo_add(EVAS_3D_NODE_CLASS, evas,
165 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH)); 165 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
diff --git a/src/examples/evas/evas-3d-ply.c b/src/examples/evas/evas-3d-ply.c
index 75505cd341..30be575a50 100644
--- a/src/examples/evas/evas-3d-ply.c
+++ b/src/examples/evas/evas-3d-ply.c
@@ -187,20 +187,22 @@ main(void)
187 for (i = 0; i < NUMBER_OF_MESHES; i++) 187 for (i = 0; i < NUMBER_OF_MESHES; i++)
188 { 188 {
189 mesh[i] = eo_add(EVAS_3D_MESH_CLASS, evas); 189 mesh[i] = eo_add(EVAS_3D_MESH_CLASS, evas);
190 evas_3d_mesh_file_set(mesh[i], path_file[i % 8], NULL);
190 191
191 eo_do(mesh[i], 192 eo_do(mesh[i],
192 evas_3d_mesh_file_set(path_file[i % 8], NULL),
193 evas_3d_mesh_frame_material_set(0, material), 193 evas_3d_mesh_frame_material_set(0, material),
194 evas_3d_mesh_shade_mode_set(draw_mode[(i % 16) / 8])); 194 evas_3d_mesh_shade_mode_set(draw_mode[(i % 16) / 8]));
195 195
196 snprintf(buffer, PATH_MAX, "%s/Saved_%s", folder, file_name[i % 8]); 196 snprintf(buffer, PATH_MAX, "%s/Saved_%s", folder, file_name[i % 8]);
197 eo_do(mesh[i], evas_3d_mesh_save(buffer, NULL)); 197 evas_3d_mesh_save(mesh[i], buffer, NULL, NULL);
198 198
199 if (i > 15) 199 if (i > 15)
200 eo_do(mesh[i], 200 {
201 evas_3d_mesh_file_set(path_file[i % 8], NULL), 201 evas_3d_mesh_file_set(mesh[i], path_file[i % 8], NULL);
202 evas_3d_mesh_frame_material_set(0, material), 202 eo_do(mesh[i],
203 evas_3d_mesh_shade_mode_set(draw_mode[(i % 16) / 8])); 203 evas_3d_mesh_frame_material_set(0, material),
204 evas_3d_mesh_shade_mode_set(draw_mode[(i % 16) / 8]));
205 }
204 206
205 mesh_node[i] = eo_add(EVAS_3D_NODE_CLASS, evas, 207 mesh_node[i] = eo_add(EVAS_3D_NODE_CLASS, evas,
206 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH)); 208 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
@@ -234,7 +236,7 @@ main(void)
234 /* Set the image object as render target for 3D scene. */ 236 /* Set the image object as render target for 3D scene. */
235 eo_do(image, evas_obj_image_scene_set(scene)); 237 eo_do(image, evas_obj_image_scene_set(scene));
236 238
237 ecore_animator_frametime_set(0.01); 239 ecore_animator_frametime_set(0.03);
238 for (i = 0; i < NUMBER_OF_MESHES; i++) 240 for (i = 0; i < NUMBER_OF_MESHES; i++)
239 anim = ecore_animator_add(_animate_scene, mesh_node[i]); 241 anim = ecore_animator_add(_animate_scene, mesh_node[i]);
240 242
diff --git a/src/examples/evas/evas-3d-shadows.c b/src/examples/evas/evas-3d-shadows.c
index 142a98eb35..cd8f55192e 100644
--- a/src/examples/evas/evas-3d-shadows.c
+++ b/src/examples/evas/evas-3d-shadows.c
@@ -218,8 +218,8 @@ main(void)
218 mesh = eo_add(EVAS_3D_MESH_CLASS, evas); 218 mesh = eo_add(EVAS_3D_MESH_CLASS, evas);
219 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 219 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
220 220
221 evas_3d_mesh_file_set(mesh, "sonic.md2", NULL);
221 eo_do(mesh, 222 eo_do(mesh,
222 evas_3d_mesh_file_set("sonic.md2", NULL),
223 evas_3d_mesh_frame_material_set(0, material), 223 evas_3d_mesh_frame_material_set(0, material),
224 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); 224 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG));
225 225
diff --git a/src/examples/evas/shooter/evas-3d-shooter.c b/src/examples/evas/shooter/evas-3d-shooter.c
index 3fa1d2a1ad..ce210d30c8 100644
--- a/src/examples/evas/shooter/evas-3d-shooter.c
+++ b/src/examples/evas/shooter/evas-3d-shooter.c
@@ -840,8 +840,7 @@ _mesh_setup_gun_planet(Scene_Data *data)
840 /* Setup material and texture for eagle. */ 840 /* Setup material and texture for eagle. */
841 841
842 data->mesh_eagle = eo_add(EVAS_3D_MESH_CLASS, evas); 842 data->mesh_eagle = eo_add(EVAS_3D_MESH_CLASS, evas);
843 eo_do(data->mesh_eagle, 843 evas_3d_mesh_file_set(data->mesh_eagle, "shooter/eagle.obj", NULL);
844 evas_3d_mesh_file_set("shooter/eagle.obj", NULL));
845 844
846 data->material_eagle = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 845 data->material_eagle = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
847 846
@@ -1294,8 +1293,7 @@ _mesh_setup_warrior(Scene_Data *data, int index)
1294{ 1293{
1295 data->mesh_level[index] = eo_add(EVAS_3D_MESH_CLASS, evas); 1294 data->mesh_level[index] = eo_add(EVAS_3D_MESH_CLASS, evas);
1296 1295
1297 eo_do(data->mesh_level[index], 1296 evas_3d_mesh_file_set(data->mesh_level[index], "shooter/warrior.md2", NULL);
1298 evas_3d_mesh_file_set("shooter/warrior.md2", NULL));
1299 1297
1300 data->material_level = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 1298 data->material_level = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
1301 eo_do(data->mesh_level[index], 1299 eo_do(data->mesh_level[index],
@@ -1328,8 +1326,7 @@ void
1328_mesh_setup_snake(Scene_Data *data) 1326_mesh_setup_snake(Scene_Data *data)
1329{ 1327{
1330 data->mesh_snake = eo_add(EVAS_3D_MESH_CLASS, evas); 1328 data->mesh_snake = eo_add(EVAS_3D_MESH_CLASS, evas);
1331 eo_do(data->mesh_snake, 1329 evas_3d_mesh_file_set(data->mesh_snake, "shooter/snake.md2", NULL);
1332 evas_3d_mesh_file_set("shooter/snake.md2", NULL));
1333 1330
1334 data->material_snake = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 1331 data->material_snake = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
1335 eo_do(data->mesh_snake, 1332 eo_do(data->mesh_snake,
diff --git a/src/lib/evas/canvas/evas_3d_mesh.c b/src/lib/evas/canvas/evas_3d_mesh.c
index 2328293625..a3a0c252de 100644
--- a/src/lib/evas/canvas/evas_3d_mesh.c
+++ b/src/lib/evas/canvas/evas_3d_mesh.c
@@ -781,33 +781,38 @@ _evas_3d_mesh_mmap_set(Eo *obj, Evas_3D_Mesh_Data *pd,
781 evas_common_load_model_from_eina_file(obj, file); 781 evas_common_load_model_from_eina_file(obj, file);
782} 782}
783 783
784EOLIAN static void 784EOLIAN static Eina_Bool
785_evas_3d_mesh_file_set(Eo *obj, Evas_3D_Mesh_Data *pd, 785_evas_3d_mesh_efl_file_file_set(Eo *obj, Evas_3D_Mesh_Data *pd,
786 const char *file, const char *key EINA_UNUSED) 786 const char *file,
787 const char *key EINA_UNUSED)
787{ 788{
788 _mesh_fini(pd); 789 _mesh_fini(pd);
789 _mesh_init(pd); 790 _mesh_init(pd);
790 791
791 if (file == NULL) return; 792 if (file == NULL) return EINA_FALSE;
792 793
793 evas_common_load_model_from_file(obj, file); 794 evas_common_load_model_from_file(obj, file);
795 return EINA_TRUE;
794} 796}
795 797
796EOLIAN static void 798EOLIAN static Eina_Bool
797_evas_3d_mesh_save(Eo *obj, Evas_3D_Mesh_Data *pd, 799_evas_3d_mesh_efl_file_save(Eo *obj, Evas_3D_Mesh_Data *pd,
798 const char *file, const char *key EINA_UNUSED) 800 const char *file,
801 const char *key EINA_UNUSED,
802 const char *flags EINA_UNUSED)
799{ 803{
800 if ((file == NULL) || (obj == NULL) || (pd == NULL)) return; 804 if ((file == NULL) || (obj == NULL) || (pd == NULL)) return EINA_FALSE;
801 805
802 Evas_3D_Mesh_Frame *f = evas_3d_mesh_frame_find(pd, 0); 806 Evas_3D_Mesh_Frame *f = evas_3d_mesh_frame_find(pd, 0);
803 807
804 if (f == NULL) 808 if (f == NULL)
805 { 809 {
806 ERR("Not existing mesh frame."); 810 ERR("Not existing mesh frame.");
807 return; 811 return EINA_FALSE;
808 } 812 }
809 813
810 evas_common_save_model_to_file(obj, file, f); 814 evas_common_save_model_to_file(obj, file, f);
815 return EINA_TRUE;
811} 816}
812 817
813static inline void 818static inline void
@@ -926,4 +931,16 @@ evas_3d_mesh_interpolate_vertex_buffer_get(Evas_3D_Mesh *mesh, int frame,
926 } 931 }
927} 932}
928 933
934EAPI void
935evas_3d_mesh_file_set(Eo *obj, const char *file, const char *key)
936{
937 eo_do((Eo *) obj, efl_file_set(file, key));
938}
939
940EAPI Eina_Bool
941evas_3d_mesh_save(const Eo *obj, const char *file, const char *key, const char *flags)
942{
943 return eo_do((Eo *) obj, efl_file_save(file, key, flags));
944}
945
929#include "canvas/evas_3d_mesh.eo.c" 946#include "canvas/evas_3d_mesh.eo.c"
diff --git a/src/lib/evas/canvas/evas_3d_mesh.eo b/src/lib/evas/canvas/evas_3d_mesh.eo
index 0c79941b6a..e6c546d283 100644
--- a/src/lib/evas/canvas/evas_3d_mesh.eo
+++ b/src/lib/evas/canvas/evas_3d_mesh.eo
@@ -1,4 +1,4 @@
1class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface) 1class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface, Efl.File)
2{ 2{
3 legacy_prefix: null; 3 legacy_prefix: null;
4 data: Evas_3D_Mesh_Data; 4 data: Evas_3D_Mesh_Data;
@@ -19,36 +19,6 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
19 } 19 }
20 } 20 }
21 21
22 file_set {
23 /**
24 * Load mesh data from file.
25 *
26 * Loading a mesh from existing file is supported. Currently, only MD2, OBJ, PLY and EET file
27 * formats are supported.
28 *
29 * @ingroup Evas_3D_Mesh
30 */
31 params {
32 @in const(char)* file; /*@ Path to the mesh file. */
33 @in const(char)* key; /*@ Key in the mesh file. */
34 }
35 }
36
37 save {
38 /**
39 * Save mesh data to file.
40 *
41 * Saving a mesh to file is supported. Currently, only OBJ, PLY and EET file
42 * format are supported.
43 *
44 * @ingroup Evas_3D_Mesh
45 */
46 params {
47 @in const(char)* file; /*@ Path to the mesh file. */
48 @in const(char)* key; /*@ Key in the mesh file. */
49 }
50 }
51
52 frame_vertex_data_set { 22 frame_vertex_data_set {
53 /*@ 23 /*@
54 Set the vertex data of the key frame of the given mesh. 24 Set the vertex data of the key frame of the given mesh.
@@ -450,6 +420,8 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
450 Eo.Base.destructor; 420 Eo.Base.destructor;
451 Evas_3D_Object.update_notify; 421 Evas_3D_Object.update_notify;
452 Evas_3D_Object.change_notify; 422 Evas_3D_Object.change_notify;
423 Efl.File.file.set;
424 Efl.File.save;
453 } 425 }
454 426
455} 427}
diff --git a/src/tests/evas/evas_test_mesh.c b/src/tests/evas/evas_test_mesh.c
index 51f601e4b1..984959b685 100644
--- a/src/tests/evas/evas_test_mesh.c
+++ b/src/tests/evas/evas_test_mesh.c
@@ -43,13 +43,13 @@
43 fail_if(mesh == NULL); \ 43 fail_if(mesh == NULL); \
44 fail_if(mesh2 == NULL); \ 44 fail_if(mesh2 == NULL); \
45 snprintf(buffer, PATH_MAX, "%s", ext); \ 45 snprintf(buffer, PATH_MAX, "%s", ext); \
46 eo_do(mesh, evas_3d_mesh_file_set(file->path, NULL)); \ 46 evas_3d_mesh_file_set(mesh, file->path, NULL); \
47 eo_do(mesh, evas_3d_mesh_save(buffer, NULL)); \ 47 evas_3d_mesh_save(mesh, buffer, NULL, NULL); \
48 eo_do(mesh2, evas_3d_mesh_file_set(buffer, NULL)); \ 48 evas_3d_mesh_file_set(mesh2, buffer, NULL); \
49 res = _compare_meshes(mesh, mesh2); \ 49 res = _compare_meshes(mesh, mesh2); \
50 fail_if(res == 1); \ 50 fail_if(res == 1); \
51 eo_do(mesh, evas_3d_mesh_mmap_set(eina_file_open(file->path, 0), NULL)); \ 51 eo_do(mesh, evas_3d_mesh_mmap_set(eina_file_open(file->path, 0), NULL)); \
52 eo_do(mesh, evas_3d_mesh_save(buffer, NULL)); \ 52 evas_3d_mesh_save(mesh, buffer, NULL, NULL); \
53 eo_do(mesh2, evas_3d_mesh_mmap_set(eina_file_open(buffer, 0), NULL)); \ 53 eo_do(mesh2, evas_3d_mesh_mmap_set(eina_file_open(buffer, 0), NULL)); \
54 res = _compare_meshes(mesh, mesh2); \ 54 res = _compare_meshes(mesh, mesh2); \
55 fail_if(res == 1); \ 55 fail_if(res == 1); \