mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Use an unique opengl context
This commit is contained in:
parent
f31cf684cb
commit
96745e12d7
8 changed files with 91 additions and 7 deletions
|
@ -52,6 +52,9 @@ class GLCanvas3DManager
|
|||
typedef std::map<wxGLCanvas*, GLCanvas3D*> CanvasesMap;
|
||||
|
||||
CanvasesMap m_canvases;
|
||||
#if ENABLE_USE_UNIQUE_GLCONTEXT
|
||||
wxGLContext* m_context;
|
||||
#endif // ENABLE_USE_UNIQUE_GLCONTEXT
|
||||
wxGLCanvas* m_current;
|
||||
GLInfo m_gl_info;
|
||||
bool m_gl_initialized;
|
||||
|
@ -61,6 +64,9 @@ class GLCanvas3DManager
|
|||
|
||||
public:
|
||||
GLCanvas3DManager();
|
||||
#if ENABLE_USE_UNIQUE_GLCONTEXT
|
||||
~GLCanvas3DManager();
|
||||
#endif // ENABLE_USE_UNIQUE_GLCONTEXT
|
||||
|
||||
bool add(wxGLCanvas* canvas);
|
||||
bool remove(wxGLCanvas* canvas);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue