poking around the scenegraph pattern implemented with EnTT
This commit is contained in:
parent
cea83d06e8
commit
1f390f5a4d
5 changed files with 86 additions and 27 deletions
|
@ -16,7 +16,10 @@ void register_scene_function(sol::state&,sol::table &ns)
|
|||
|
||||
|
||||
ns.new_usertype<entity>("entity",
|
||||
sol::constructors<entity>());
|
||||
sol::constructors<entity(),entity(scene&)>(),
|
||||
"add_child",&entity::add_child,
|
||||
"child_count",sol::readonly_property(&entity::child_count)
|
||||
);
|
||||
|
||||
|
||||
ns.new_usertype<node>("node",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue