working port from C++ to Lua with very basic shader and geometry functionality in place
This commit is contained in:
parent
0d2138c9f2
commit
3471196830
8 changed files with 154 additions and 20 deletions
|
@ -154,6 +154,9 @@ void register_core_function(sol::state& lua,sol::table& ns)
|
|||
,"gray", image::LUM);
|
||||
|
||||
|
||||
auto mathf_table = ns.create_named("mathf");
|
||||
mathf_table.set_function("ping_pong",ping_pong<real_t>);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ void register_system_function(sol::state&, sol::table &ns)
|
|||
ns.new_usertype<window>("window",
|
||||
"update",&window::update,
|
||||
"on_update",sol::writeonly_property(&window::set_on_update),
|
||||
"on_resize",sol::writeonly_property(&window::set_on_resize),
|
||||
"title",sol::writeonly_property(&window::set_title),
|
||||
"size",sol::property(&window::size,&window::set_size),
|
||||
"client_size",sol::readonly_property(&window::client_size),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue