summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/examples/evas/Obj_fixes/example_to_explain_fixes.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/examples/evas/Obj_fixes/example_to_explain_fixes.c b/src/examples/evas/Obj_fixes/example_to_explain_fixes.c
index 35bdc5385b..7037096d1c 100644
--- a/src/examples/evas/Obj_fixes/example_to_explain_fixes.c
+++ b/src/examples/evas/Obj_fixes/example_to_explain_fixes.c
@@ -17,19 +17,19 @@
17#define WIDTH 1900 17#define WIDTH 1900
18#define HEIGHT 1080 18#define HEIGHT 1080
19 19
20#define ADD_OBJ_MESH(mesh_name, Y, Z) \ 20#define ADD_OBJ_MESH(mesh_name, Y, Z) \
21 mesh_name = eo_add(EVAS_3D_MESH_CLASS, evas); \ 21 mesh_name = eo_add(EVAS_3D_MESH_CLASS, evas); \
22 eo_do(mesh_name, \ 22 eo_do(mesh_name, \
23 efl_file_set("sweet_"#mesh_name".obj", NULL), \ 23 efl_file_set("sweet_"#mesh_name".obj", NULL), \
24 evas_3d_mesh_frame_material_set(0, material), \ 24 evas_3d_mesh_frame_material_set(0, material), \
25 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); \ 25 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); \
26 eo_do(mesh_name, efl_file_save("saved_"#mesh_name".obj", NULL, NULL)); \ 26 eo_do(mesh_name, efl_file_save("saved_"#mesh_name".obj", NULL, NULL)); \
27 mesh_name##_node = eo_add(EVAS_3D_NODE_CLASS, evas, \ 27 mesh_name##_node = eo_add(EVAS_3D_NODE_CLASS, evas, \
28 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH)); \ 28 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH)); \
29 eo_do(root_node, \ 29 eo_do(root_node, \
30 evas_3d_node_member_add(mesh_name##_node)); \ 30 evas_3d_node_member_add(mesh_name##_node)); \
31 eo_do(mesh_name##_node, \ 31 eo_do(mesh_name##_node, \
32 evas_3d_node_mesh_add(mesh_name), \ 32 evas_3d_node_mesh_add(mesh_name), \
33 evas_3d_node_position_set(0, Y, Z)); 33 evas_3d_node_position_set(0, Y, Z));
34 34
35Ecore_Evas *ecore_evas = NULL; 35Ecore_Evas *ecore_evas = NULL;
@@ -108,7 +108,7 @@ main(void)
108 108
109 /* Add the root node for the scene. */ 109 /* Add the root node for the scene. */
110 root_node = eo_add(EVAS_3D_NODE_CLASS, evas, 110 root_node = eo_add(EVAS_3D_NODE_CLASS, evas,
111 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE)); 111 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE));
112 112
113 /* Add the camera. */ 113 /* Add the camera. */
114 camera = eo_add(EVAS_3D_CAMERA_CLASS, evas); 114 camera = eo_add(EVAS_3D_CAMERA_CLASS, evas);
@@ -117,7 +117,7 @@ main(void)
117 117
118 camera_node = 118 camera_node =
119 eo_add(EVAS_3D_NODE_CLASS, evas, 119 eo_add(EVAS_3D_NODE_CLASS, evas,
120 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA)); 120 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA));
121 eo_do(camera_node, 121 eo_do(camera_node,
122 evas_3d_node_camera_set(camera)); 122 evas_3d_node_camera_set(camera));
123 eo_do(root_node, 123 eo_do(root_node,
@@ -136,7 +136,7 @@ main(void)
136 136
137 light_node = 137 light_node =
138 eo_add(EVAS_3D_NODE_CLASS, evas, 138 eo_add(EVAS_3D_NODE_CLASS, evas,
139 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT)); 139 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT));
140 eo_do(light_node, 140 eo_do(light_node,
141 evas_3d_node_light_set(light), 141 evas_3d_node_light_set(light),
142 evas_3d_node_position_set(10.0, 0.0, 2.0), 142 evas_3d_node_position_set(10.0, 0.0, 2.0),