summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-3d-aabb.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-aabb.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-aabb.c')
-rw-r--r--src/examples/evas/evas-3d-aabb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/evas/evas-3d-aabb.c b/src/examples/evas/evas-3d-aabb.c
index 42e7ed4..f57889d 100644
--- a/src/examples/evas/evas-3d-aabb.c
+++ b/src/examples/evas/evas-3d-aabb.c
@@ -187,7 +187,7 @@ main(void)
187 187
188 scene = eo_add(EVAS_3D_SCENE_CLASS, evas); 188 scene = eo_add(EVAS_3D_SCENE_CLASS, evas);
189 189
190 root_node = eo_add_custom(EVAS_3D_NODE_CLASS, evas, 190 root_node = eo_add(EVAS_3D_NODE_CLASS, evas,
191 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE)); 191 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_NODE));
192 192
193 camera = eo_add(EVAS_3D_CAMERA_CLASS, evas); 193 camera = eo_add(EVAS_3D_CAMERA_CLASS, evas);
@@ -195,7 +195,7 @@ main(void)
195 evas_3d_camera_projection_perspective_set(60.0, 1.0, 1.0, 500.0)); 195 evas_3d_camera_projection_perspective_set(60.0, 1.0, 1.0, 500.0));
196 196
197 camera_node = 197 camera_node =
198 eo_add_custom(EVAS_3D_NODE_CLASS, evas, 198 eo_add(EVAS_3D_NODE_CLASS, evas,
199 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA)); 199 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA));
200 eo_do(camera_node, 200 eo_do(camera_node,
201 evas_3d_node_camera_set(camera)); 201 evas_3d_node_camera_set(camera));
@@ -213,7 +213,7 @@ main(void)
213 evas_3d_light_directional_set(EINA_TRUE)); 213 evas_3d_light_directional_set(EINA_TRUE));
214 214
215 light_node = 215 light_node =
216 eo_add_custom(EVAS_3D_NODE_CLASS, evas, 216 eo_add(EVAS_3D_NODE_CLASS, evas,
217 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT)); 217 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_LIGHT));
218 eo_do(light_node, 218 eo_do(light_node,
219 evas_3d_node_light_set(light), 219 evas_3d_node_light_set(light),
@@ -252,9 +252,9 @@ main(void)
252 1.0, 1.0, 1.0, 1.0), 252 1.0, 1.0, 1.0, 1.0),
253 evas_3d_material_shininess_set(50.0)); 253 evas_3d_material_shininess_set(50.0));
254 254
255 mesh_node = eo_add_custom(EVAS_3D_NODE_CLASS, evas, 255 mesh_node = eo_add(EVAS_3D_NODE_CLASS, evas,
256 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH)); 256 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
257 mesh_box_node = eo_add_custom(EVAS_3D_NODE_CLASS, evas, 257 mesh_box_node = eo_add(EVAS_3D_NODE_CLASS, evas,
258 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH)); 258 evas_3d_node_constructor(EVAS_3D_NODE_TYPE_MESH));
259 259
260 material_box = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 260 material_box = eo_add(EVAS_3D_MATERIAL_CLASS, evas);