diff options
| author | Manolo Gouy <Manolo> | 2015-02-02 13:08:51 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-02-02 13:08:51 +0000 |
| commit | 5017171db80080eeb1404410c9c7086767731675 (patch) | |
| tree | b80ed153d367a9691887c0d55119385bcf886c69 /FL | |
| parent | f8ee30ef746e4d9dcc270b1c435474f0e2007a2b (diff) | |
Replace gl_xxx() function names by new member functions of the Fl_X class to avoid
collisions with user-defined symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/mac.H | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -75,9 +75,11 @@ typedef CGContextRef Fl_Offscreen; #ifdef __OBJC__ @class NSCursor; @class NSOpenGLPixelFormat; +@class NSOpenGLContext; #else class NSCursor; class NSOpenGLPixelFormat; +class NSOpenGLContext; #endif // __OBJC__ typedef CGContextRef Fl_Offscreen; @@ -168,6 +170,12 @@ public: // Cocoa additions static int resolution_scaling_factor(Fl_Window*); static NSOpenGLPixelFormat *mode_to_NSOpenGLPixelFormat(int mode, const int*); // computes NSOpenGLPixelFormat from Gl window's mode + static NSOpenGLContext* create_GLcontext_for_window(NSOpenGLPixelFormat *pixelformat, NSOpenGLContext *shared_ctx, Fl_Window *window); + static void GLcontext_update(NSOpenGLContext*); + static void GLcontext_flushbuffer(NSOpenGLContext*); + static void GLcontext_release(NSOpenGLContext*); + static void GLcontext_makecurrent(NSOpenGLContext*); + static void GL_cleardrawable(void); void destroy(void); void map(void); void unmap(void); |
