Added opencsg parameter console

This commit is contained in:
tamasmeszaros 2019-12-16 12:36:44 +01:00
parent 66759e10e3
commit b1186e339d
3 changed files with 70 additions and 13 deletions

View file

@ -454,7 +454,14 @@ void Display::on_moved_to(long x, long y)
m_mouse_pos = {x, y};
}
void CSGSettings::set_csg_algo(OpenCSG::Algorithm alg) { m_csgalg = alg; }
void Display::apply_csgsettings(const CSGSettings &settings)
{
using namespace OpenCSG;
m_csgsettings = settings;
setOption(AlgorithmSetting, m_csgsettings.get_algo());
setOption(DepthComplexitySetting, m_csgsettings.get_depth_algo());
setOption(DepthBoundsOptimization, m_csgsettings.get_optimization());
}
void Display::on_scene_updated()
{