3DScene picking pass moved to c++

This commit is contained in:
Enrico Turri 2018-05-23 15:35:11 +02:00
parent 486180c422
commit 751b41b94b
8 changed files with 338 additions and 103 deletions

View file

@ -1934,6 +1934,11 @@ bool _3DScene::is_shader_enabled(wxGLCanvas* canvas)
return s_canvas_mgr.is_shader_enabled(canvas);
}
bool _3DScene::is_multisample_allowed(wxGLCanvas* canvas)
{
return s_canvas_mgr.is_multisample_allowed(canvas);
}
void _3DScene::enable_warning_texture(wxGLCanvas* canvas, bool enable)
{
s_canvas_mgr.enable_warning_texture(canvas, enable);
@ -1954,6 +1959,11 @@ void _3DScene::enable_shader(wxGLCanvas* canvas, bool enable)
s_canvas_mgr.enable_shader(canvas, enable);
}
void _3DScene::allow_multisample(wxGLCanvas* canvas, bool allow)
{
s_canvas_mgr.allow_multisample(canvas, allow);
}
bool _3DScene::is_mouse_dragging(wxGLCanvas* canvas)
{
return s_canvas_mgr.is_mouse_dragging(canvas);
@ -1975,6 +1985,16 @@ void _3DScene::set_mouse_position(wxGLCanvas* canvas, const Pointf* position)
s_canvas_mgr.set_mouse_position(canvas, *position);
}
int _3DScene::get_hover_volume_id(wxGLCanvas* canvas)
{
return s_canvas_mgr.get_hover_volume_id(canvas);
}
void _3DScene::set_hover_volume_id(wxGLCanvas* canvas, int id)
{
s_canvas_mgr.set_hover_volume_id(canvas, id);
}
void _3DScene::zoom_to_bed(wxGLCanvas* canvas)
{
s_canvas_mgr.zoom_to_bed(canvas);
@ -2000,6 +2020,11 @@ void _3DScene::stop_using_shader(wxGLCanvas* canvas)
s_canvas_mgr.stop_using_shader(canvas);
}
void _3DScene::picking_pass(wxGLCanvas* canvas)
{
s_canvas_mgr.picking_pass(canvas);
}
void _3DScene::render_background(wxGLCanvas* canvas)
{
s_canvas_mgr.render_background(canvas);