summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_model_save.c
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/common/evas_model_save.c
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 '')
-rw-r--r--src/lib/evas/common/evas_model_save.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_model_save.c b/src/lib/evas/common/evas_model_save.c
new file mode 100644
index 0000000000..85b9b4113f
--- /dev/null
+++ b/src/lib/evas/common/evas_model_save.c
@@ -0,0 +1,32 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#endif
4
5#include "evas_options.h"
6
7#include "evas_common_private.h"
8#include "evas_private.h"
9
10
11void
12evas_common_save_model_to_file(Evas_3D_Mesh *model,
13 const char *file,
14 Evas_3D_Mesh_Frame *f,
15 Evas_3D_Mesh_File_Type type)
16{
17 switch (type)
18 {
19 case EVAS_3D_MESH_FILE_TYPE_OBJ:
20 evas_model_save_file_obj(model, file, f);
21 break;
22 case EVAS_3D_MESH_FILE_TYPE_EET:
23 evas_model_save_file_eet(model, file, f);
24 break;
25 case EVAS_3D_MESH_FILE_TYPE_PLY:
26 evas_model_save_file_ply(model, file, f);
27 break;
28 default:
29 ERR("Invalid mesh file type.");
30 break;
31 }
32}