forked from enlightenment/efl
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:
parent
6967aa1457
commit
d2bb0eefc4
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue