X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/421bb0184e589b470c7196940f9d5ed4f3d08136..2ae3afa09f5c013cb2f6b4fb5c638cca1d8a5f13:/include/wx/osx/glcanvas.h diff --git a/include/wx/osx/glcanvas.h b/include/wx/osx/glcanvas.h index 1fc775c88e..ff97bdf0ef 100644 --- a/include/wx/osx/glcanvas.h +++ b/include/wx/osx/glcanvas.h @@ -15,16 +15,20 @@ #ifdef __WXOSX_IPHONE__ #import #import +#define wxUSE_OPENGL_EMULATION 1 #else #include #endif +#include "wx/vector.h" + // low level calls WXDLLIMPEXP_GL WXGLContext WXGLCreateContext( WXGLPixelFormat pixelFormat, WXGLContext shareContext ); WXDLLIMPEXP_GL void WXGLDestroyContext( WXGLContext context ); + WXDLLIMPEXP_GL WXGLContext WXGLGetCurrentContext(); -WXDLLIMPEXP_GL void WXGLSwapBuffers( WXGLContext context ); +WXDLLIMPEXP_GL bool WXGLSetCurrentContext(WXGLContext context); WXDLLIMPEXP_GL WXGLPixelFormat WXGLChoosePixelFormat(const int *attribList); WXDLLIMPEXP_GL void WXGLDestroyPixelFormat( WXGLPixelFormat pixelFormat ); @@ -39,7 +43,7 @@ public: // Mac-specific WXGLContext GetWXGLContext() const { return m_glContext; } - + private: WXGLContext m_glContext; @@ -138,7 +142,7 @@ public: virtual void MacVisibilityChanged(); void MacUpdateView(); - + GLint GetAglBufferName() const { return m_bufferName; } #endif