X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6ccc13c2fd78a1165782fd5b5bdd2950fb8fb2e..43c42c18d36c703a88b1b7b697bac27fe5608eca:/include/wx/osx/glcanvas.h?ds=sidebyside diff --git a/include/wx/osx/glcanvas.h b/include/wx/osx/glcanvas.h index 8dfde849eb..3377084b26 100644 --- a/include/wx/osx/glcanvas.h +++ b/include/wx/osx/glcanvas.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/mac/carbon/glcanvas.h +// Name: wx/osx/glcanvas.h // Purpose: wxGLCanvas, for using OpenGL with wxWidgets under Macintosh // Author: Stefan Csomor // Modified by: @@ -15,17 +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 bool WXGLSetCurrentContext(WXGLContext context); -WXDLLIMPEXP_GL void WXGLSwapBuffers( WXGLContext context ); WXDLLIMPEXP_GL WXGLPixelFormat WXGLChoosePixelFormat(const int *attribList); WXDLLIMPEXP_GL void WXGLDestroyPixelFormat( WXGLPixelFormat pixelFormat ); @@ -40,7 +43,7 @@ public: // Mac-specific WXGLContext GetWXGLContext() const { return m_glContext; } - + private: WXGLContext m_glContext; @@ -139,7 +142,7 @@ public: virtual void MacVisibilityChanged(); void MacUpdateView(); - + GLint GetAglBufferName() const { return m_bufferName; } #endif