summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas
diff options
context:
space:
mode:
authorBogdan Devichev <b.devichev@samsung.com>2014-11-27 15:16:03 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-12-23 21:14:52 +0100
commit02c85b9fe8d9acb2802210eb65bca450f21c5712 (patch)
tree989af3a1feba97487d6bd305f1a03ef581db0d6f /src/lib/evas/canvas
parent9b7e22f5a5a2ee734264265267e2186cbebce65c (diff)
evas: add lib/evas/common/evas_model_<action>.c. Functions are renamed similar to functions in image_save_load process.
Diffstat (limited to 'src/lib/evas/canvas')
-rw-r--r--src/lib/evas/canvas/evas_3d_mesh.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/src/lib/evas/canvas/evas_3d_mesh.c b/src/lib/evas/canvas/evas_3d_mesh.c
index 81b9117628..572da9dd04 100644
--- a/src/lib/evas/canvas/evas_3d_mesh.c
+++ b/src/lib/evas/canvas/evas_3d_mesh.c
@@ -809,24 +809,7 @@ _evas_3d_mesh_file_set(Eo *obj, Evas_3D_Mesh_Data *pd, Evas_3D_Mesh_File_Type ty
809 809
810 if (file == NULL) return; 810 if (file == NULL) return;
811 811
812 switch (type) 812 evas_common_load_model_to_file(obj, file, type);
813 {
814 case EVAS_3D_MESH_FILE_TYPE_MD2:
815 evas_3d_mesh_file_md2_set(obj, file);
816 break;
817 case EVAS_3D_MESH_FILE_TYPE_OBJ:
818 evas_3d_mesh_file_obj_set(obj, file);
819 break;
820 case EVAS_3D_MESH_FILE_TYPE_EET:
821 evas_3d_mesh_file_eet_set(obj, file);
822 break;
823 case EVAS_3D_MESH_FILE_TYPE_PLY:
824 evas_3d_mesh_file_ply_set(obj, file);
825 break;
826 default:
827 ERR("Invalid mesh file type.");
828 break;
829 }
830} 813}
831 814
832EOLIAN static void 815EOLIAN static void
@@ -843,21 +826,7 @@ _evas_3d_mesh_save(Eo *obj, Evas_3D_Mesh_Data *pd, Evas_3D_Mesh_File_Type type,
843 return; 826 return;
844 } 827 }
845 828
846 switch (type) 829 evas_common_save_model_to_file(obj, file, f, type);
847 {
848 case EVAS_3D_MESH_FILE_TYPE_OBJ:
849 evas_3d_mesh_save_obj(obj, file, f);//file without extension!
850 break;
851 case EVAS_3D_MESH_FILE_TYPE_EET:
852 evas_3d_mesh_save_eet(obj, file, f);
853 break;
854 case EVAS_3D_MESH_FILE_TYPE_PLY:
855 evas_3d_mesh_save_ply(obj, file, f);
856 break;
857 default:
858 ERR("Invalid mesh file type.");
859 break;
860 }
861} 830}
862 831
863static inline void 832static inline void