summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_model_load.c
diff options
context:
space:
mode:
authorBogdan Devichev <b.devichev@samsung.com>2014-11-27 15:16:03 +0200
committerBogdan Devichev <b.devichev@samsung.com>2014-12-05 11:09:56 +0200
commit291291e027ade52033670f5b09cab4712926bf0b (patch)
tree4d8de3eb7c936d623de99bd91ec8e25363e3830b /src/lib/evas/common/evas_model_load.c
parent2f502b7f0e360341cecb1a6969b838776dc34a41 (diff)
Model_save_load. Step 3. lib/evas/common/evas_model_<action>.c is added. Functions are renamed similar to functions in image_save_load process.
Diffstat (limited to 'src/lib/evas/common/evas_model_load.c')
-rw-r--r--src/lib/evas/common/evas_model_load.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_model_load.c b/src/lib/evas/common/evas_model_load.c
new file mode 100644
index 0000000000..1f35cb0d97
--- /dev/null
+++ b/src/lib/evas/common/evas_model_load.c
@@ -0,0 +1,34 @@
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_load_model_to_file(Evas_3D_Mesh *model,
13 const char *file,
14 Evas_3D_Mesh_File_Type type)
15{
16 switch (type)
17 {
18 case EVAS_3D_MESH_FILE_TYPE_MD2:
19 evas_model_load_file_md2(model, file);
20 break;
21 case EVAS_3D_MESH_FILE_TYPE_OBJ:
22 evas_model_load_file_obj(model, file);
23 break;
24 case EVAS_3D_MESH_FILE_TYPE_EET:
25 evas_model_load_file_eet(model, file);
26 break;
27 case EVAS_3D_MESH_FILE_TYPE_PLY:
28 evas_model_load_file_ply(model, file);
29 break;
30 default:
31 ERR("Invalid mesh file type.");
32 break;
33 }
34}