Evas 3d: Get hash table of scenes using the given node as root.

Summary: We need this to have an access to scene while running programs in edje-3d.

Reviewers: cedric, raster, Hermet, jpeg

Reviewed By: jpeg

Subscribers: jpeg, artem.popov

Differential Revision: https://phab.enlightenment.org/D3529
This commit is contained in:
perepelits.m 2016-01-05 20:39:02 +09:00 committed by Jean-Philippe Andre
parent 6967aa1457
commit d2bb0eefc4
2 changed files with 11 additions and 0 deletions

View File

@ -760,6 +760,12 @@ evas_canvas3d_node_scene_root_del(Evas_Canvas3D_Node *node, Evas_Canvas3D_Scene
eina_hash_set(pd->scenes_root, &scene, (const void *)(uintptr_t)(count - 1));
}
EOLIAN static Eina_Hash*
_evas_canvas3d_node_scene_root_get(Eo *obj EINA_UNUSED, Evas_Canvas3D_Node_Data *pd)
{
return pd->scenes_root;
}
void
evas_canvas3d_node_scene_camera_add(Evas_Canvas3D_Node *node, Evas_Canvas3D_Scene *scene)
{

View File

@ -52,6 +52,11 @@ class Evas.Canvas3D.Node (Evas.Canvas3D.Object, Evas.Common_Interface)
See also @Evas.Canvas3D.Node.member_add.]]
return: const(list<Evas.Canvas3D.Node *>)*; [[The list of member nodes if any or $null if there are none.]]
}
scene_root_get {
[[Get hash table of scenes using this node as root.]]
return: Eina.Hash *; [[ scenes using this node as root.]]
}
position_set {
[[Set the position of the given node.