X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..66c2bf7b1d9326fb650acfaae22ec50528cfbf7c:/include/wx/osx/glcanvas.h diff --git a/include/wx/osx/glcanvas.h b/include/wx/osx/glcanvas.h index 9f2d2ca9ff..1789a900f0 100644 --- a/include/wx/osx/glcanvas.h +++ b/include/wx/osx/glcanvas.h @@ -1,10 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// -// 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: // Created: 1998-01-01 -// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -12,14 +11,23 @@ #ifndef _WX_GLCANVAS_H_ #define _WX_GLCANVAS_H_ +#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 ); @@ -34,7 +42,7 @@ public: // Mac-specific WXGLContext GetWXGLContext() const { return m_glContext; } - + private: WXGLContext m_glContext; @@ -133,7 +141,7 @@ public: virtual void MacVisibilityChanged(); void MacUpdateView(); - + GLint GetAglBufferName() const { return m_bufferName; } #endif