X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c39d2e0a3822e695efdfb2ead77a09defd6ed8c1..cc510e136407469a053f3d01b83c1f8a2783e1e6:/include/wx/msw/glcanvas.h?ds=sidebyside diff --git a/include/wx/msw/glcanvas.h b/include/wx/msw/glcanvas.h index dba1cba083..ba8388d35d 100644 --- a/include/wx/msw/glcanvas.h +++ b/include/wx/msw/glcanvas.h @@ -134,15 +134,23 @@ 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 HDC m_hDC; - void wxGLCanvas::DestroyWindowPFD(wxWindow *parent); - private: DECLARE_EVENT_TABLE() DECLARE_CLASS(wxGLCanvas)