mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Refactoring - Shared members of GLCanvas3D as references instead of pointers
This commit is contained in:
parent
b5217918cf
commit
fc70b73f45
9 changed files with 97 additions and 193 deletions
|
@ -25,6 +25,11 @@ inline void glAssertRecentCall() { }
|
|||
#endif
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
class Bed3D;
|
||||
struct Camera;
|
||||
class GLToolbar;
|
||||
} // namespace GUI
|
||||
|
||||
class Print;
|
||||
class PrintObject;
|
||||
|
@ -563,7 +568,7 @@ class _3DScene
|
|||
public:
|
||||
static std::string get_gl_info(bool format_as_html, bool extensions);
|
||||
|
||||
static bool add_canvas(wxGLCanvas* canvas);
|
||||
static bool add_canvas(wxGLCanvas* canvas, GUI::Bed3D& bed, GUI::Camera& camera, GUI::GLToolbar& view_toolbar);
|
||||
static bool remove_canvas(wxGLCanvas* canvas);
|
||||
static void remove_all_canvases();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue