summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-3d-cube2.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-25 10:24:27 +0100
committerTom Hacohen <tom@stosb.com>2014-09-25 10:30:56 +0100
commit6846978ebd027fff1de57d526071517243354354 (patch)
tree6ff7651990561224738e332b2ccd3fa84e47dc4f /src/examples/evas/evas-3d-cube2.c
parent8204212f36d936f951accda61fd2f7f329390b71 (diff)
Eo: Get rid of eo_add_custom.
We decided to deprecate this one in favour of setting thing in the construction between the constructor and the finalizer.
Diffstat (limited to 'src/examples/evas/evas-3d-cube2.c')
-rw-r--r--src/examples/evas/evas-3d-cube2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/evas/evas-3d-cube2.c b/src/examples/evas/evas-3d-cube2.c
index c255545..68e30d7 100644
--- a/src/examples/evas/evas-3d-cube2.c
+++ b/src/examples/evas/evas-3d-cube2.c
@@ -159,7 +159,7 @@ _camera_setup(Scene_Data *data)
159 evas_3d_camera_projection_perspective_set(60.0, 1.0, 2.0, 50.0)); 159 evas_3d_camera_projection_perspective_set(60.0, 1.0, 2.0, 50.0));
160 160
161 data->camera_node = 161 data->camera_node =
162 eo_add_custom(EVAS_3D_NODE_CLASS, evas, 162 eo_add(EVAS_3D_NODE_CLASS, evas,
163 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA)); 163 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA));
164 eo_do(data->camera_node, 164 eo_do(data->camera_node,
165 evas_3d_node_camera_set(data->camera), 165 evas_3d_node_camera_set(data->camera),
@@ -180,7 +180,7 @@ _light_setup(Scene_Data *data)
180 evas_3d_light_specular_set(1.0, 1.0, 1.0, 1.0)); 180 evas_3d_light_specular_set(1.0, 1.0, 1.0, 1.0));
181 181
182 data->light_node = 182 data->light_node =
183 eo_add_custom(EVAS_3D_NODE_CLASS, evas, 183 eo_add(EVAS_3D_NODE_CLASS, evas,
184 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT)); 184 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT));
185 eo_do(data->light_node, 185 eo_do(data->light_node,
186 evas_3d_node_light_set(data->light), 186 evas_3d_node_light_set(data->light),
@@ -265,7 +265,7 @@ _mesh_setup(Scene_Data *data)
265 evas_3d_mesh_frame_material_set(20, data->material1)); 265 evas_3d_mesh_frame_material_set(20, data->material1));
266 266
267 data->mesh_node = 267 data->mesh_node =
268 eo_add_custom(EVAS_3D_NODE_CLASS, evas, 268 eo_add(EVAS_3D_NODE_CLASS, evas,
269 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH)); 269 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
270 eo_do(data->root_node, evas_3d_node_member_add(data->mesh_node)); 270 eo_do(data->root_node, evas_3d_node_member_add(data->mesh_node));
271 eo_do(data->mesh_node, evas_3d_node_mesh_add(data->mesh)); 271 eo_do(data->mesh_node, evas_3d_node_mesh_add(data->mesh));
@@ -280,7 +280,7 @@ _scene_setup(Scene_Data *data)
280 evas_3d_scene_background_color_set(0.0, 0.0, 0.0, 0.0)); 280 evas_3d_scene_background_color_set(0.0, 0.0, 0.0, 0.0));
281 281
282 data->root_node = 282 data->root_node =
283 eo_add_custom(EVAS_3D_NODE_CLASS, evas, 283 eo_add(EVAS_3D_NODE_CLASS, evas,
284 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE)); 284 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE));
285 285
286 _camera_setup(data); 286 _camera_setup(data);