X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f526a8c797c2daca2c27d9323836e4472f96ce1..43ff861df48f0837dac98005dd397c5f127ca136:/include/wx/msw/glcanvas.h diff --git a/include/wx/msw/glcanvas.h b/include/wx/msw/glcanvas.h index d37a569768..ba8388d35d 100644 --- a/include/wx/msw/glcanvas.h +++ b/include/wx/msw/glcanvas.h @@ -134,8 +134,18 @@ protected: // common part of all ctors void Init(); + // the real window creation function, Create() may reuse it twice as we may + // need to create an OpenGL window to query the available extensions and + // then potentially delete and recreate it with another pixel format + bool CreateWindow(wxWindow *parent, + wxWindowID id = wxID_ANY, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxGLCanvasName); + // set up the pixel format using the given attributes and palette - bool DoSetup(const int *attribList); + int DoSetup(PIXELFORMATDESCRIPTOR &pfd, const int *attribList); // HDC for this window, we keep it all the time @@ -147,4 +157,3 @@ private: }; #endif // _WX_GLCANVAS_H_ -