experimenting around with scene and rendering components
This commit is contained in:
parent
8915080b64
commit
0cd3c99119
10 changed files with 117 additions and 117 deletions
|
@ -103,18 +103,17 @@ void register_core_function(sol::state& lua,sol::table& ns)
|
|||
"reset",&time::reset
|
||||
);
|
||||
|
||||
auto mesh_type = ns.new_usertype<mesh>("mesh"
|
||||
, sol::constructors<mesh()>()
|
||||
, "topology", sol::property(&mesh::topology,&mesh::set_topology)
|
||||
, "vertices", sol::property(&mesh::vertices,&mesh::set_vertices)
|
||||
, "indices", sol::property(&mesh::indices,&mesh::set_indices)
|
||||
auto geoom_type = ns.new_usertype<geometry>("geometry"
|
||||
, sol::constructors<geometry()>()
|
||||
, "topology", sol::property(&geometry::topology,&geometry::set_topology)
|
||||
, "vertices", sol::property(&geometry::vertices,&geometry::set_vertices)
|
||||
, "indices", sol::property(&geometry::indices,&geometry::set_indices)
|
||||
);
|
||||
|
||||
mesh_type.new_enum("topology"
|
||||
, "points", mesh::topology_type::points
|
||||
, "lines", mesh::topology_type::lines
|
||||
, "line_strip", mesh::topology_type::line_strip
|
||||
);
|
||||
geoom_type.new_enum("topology"
|
||||
, "points", geometry::topology_type::points
|
||||
, "lines", geometry::topology_type::lines
|
||||
, "line_strip", geometry::topology_type::line_strip
|
||||
);
|
||||
|
||||
ns.new_usertype<image>("image"
|
||||
,"create",&image::create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue