wxGLContext(wxGLCanvas *win, const wxGLContext *other = NULL);
virtual ~wxGLContext();
- virtual void SetCurrent(const wxGLCanvas& win) const;
+ virtual bool SetCurrent(const wxGLCanvas& win) const;
// Mac-specific
AGLContext GetAGLContext() const { return m_aglContext; }
virtual ~wxGLCanvas();
// implement wxGLCanvasBase methods
- virtual void SwapBuffers();
+ virtual bool SwapBuffers();
// Mac-specific functions
// implementation-only from now on
- // Unlike some other platforms, this must get called if you override it.
- // It sets the viewport correctly and update the context.
- // You shouldn't call glViewport yourself either (use SetViewport if you must reset it.)
+ // Unlike some other platforms, this must get called if you override it,
+ // i.e. don't forget "event.Skip()" in your EVT_SIZE handler
void OnSize(wxSizeEvent& event);
virtual void MacSuperChangedPosition();