Use a single gl context created in c++

This commit is contained in:
Enrico Turri
2018-06-11 15:49:04 +02:00
parent a02ea39525
commit 44220530cb
7 changed files with 42 additions and 26 deletions

View File

@@ -43,6 +43,7 @@ class GLCanvas3DManager
typedef std::map<wxGLCanvas*, GLCanvas3D*> CanvasesMap;
wxGLContext* m_context;
CanvasesMap m_canvases;
GLInfo m_gl_info;
bool m_gl_initialized;
@@ -51,8 +52,9 @@ class GLCanvas3DManager
public:
GLCanvas3DManager();
~GLCanvas3DManager();
bool add(wxGLCanvas* canvas, wxGLContext* context);
bool add(wxGLCanvas* canvas);
bool remove(wxGLCanvas* canvas);
void remove_all();