aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz/camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/extantz/camera.c')
-rw-r--r--src/extantz/camera.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/extantz/camera.c b/src/extantz/camera.c
index 7e22d8d..b956a6e 100644
--- a/src/extantz/camera.c
+++ b/src/extantz/camera.c
@@ -190,8 +190,7 @@ Evas_3D_Node *cameraAdd(Evas *evas, Scene_Data *scene, Evas_Object *image)
190 evas_3d_camera_projection_perspective_set(60.0, 1.0, 1.0, 500.0) 190 evas_3d_camera_projection_perspective_set(60.0, 1.0, 1.0, 500.0)
191 ); 191 );
192 192
193 result = evas_3d_node_add(evas, EVAS_3D_NODE_TYPE_CAMERA); 193 result = eo_add_custom(EVAS_3D_NODE_CLASS, evas, evas_3d_node_constructor(EVAS_3D_NODE_TYPE_CAMERA),
194 eo_do(result,
195 evas_3d_node_camera_set(camera), 194 evas_3d_node_camera_set(camera),
196 evas_3d_node_position_set(50.0, 0.0, 20.0), 195 evas_3d_node_position_set(50.0, 0.0, 20.0),
197 evas_3d_node_look_at_set(EVAS_3D_SPACE_PARENT, 0.0, 0.0, 20.0, EVAS_3D_SPACE_PARENT, 0.0, 0.0, 1.0) 196 evas_3d_node_look_at_set(EVAS_3D_SPACE_PARENT, 0.0, 0.0, 20.0, EVAS_3D_SPACE_PARENT, 0.0, 0.0, 1.0)
@@ -204,7 +203,7 @@ Evas_3D_Node *cameraAdd(Evas *evas, Scene_Data *scene, Evas_Object *image)
204 // In this code, we are making our own camera, so grab it's input when we are focused. 203 // In this code, we are making our own camera, so grab it's input when we are focused.
205 evas_object_event_callback_add(image, EVAS_CALLBACK_KEY_DOWN, _on_camera_input_down, scene->move); 204 evas_object_event_callback_add(image, EVAS_CALLBACK_KEY_DOWN, _on_camera_input_down, scene->move);
206 evas_object_event_callback_add(image, EVAS_CALLBACK_KEY_UP, _on_camera_input_up, scene->move); 205 evas_object_event_callback_add(image, EVAS_CALLBACK_KEY_UP, _on_camera_input_up, scene->move);
207 // While it's true that image is an Elm image, seems this Elm input event callbacrk doesn't work. 206 // While it's true that image is an Elm image, seems this Elm input event callback doesn't work.
208// elm_object_event_callback_add(image, _cb_event_GL, NULL); 207// elm_object_event_callback_add(image, _cb_event_GL, NULL);
209 208
210 return result; 209 return result;