From 9f78323574ce8fbbcbf491980fdc9629b83a018a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 19 Apr 2016 16:58:17 +0000 Subject: Move GL-related static member functions of the Fl_X class on Mac OS to class Fl_Cocoa_Screen_Driver. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/mac.H | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'FL') diff --git a/FL/mac.H b/FL/mac.H index 9c4ce11a8..ee212d1e4 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -76,14 +76,6 @@ typedef unsigned int NSUInteger; #endif #endif -#ifdef __OBJC__ -@class NSOpenGLPixelFormat; -@class NSOpenGLContext; -#else -class NSOpenGLPixelFormat; -class NSOpenGLContext; -#endif // __OBJC__ - #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4 typedef CGImageAlphaInfo CGBitmapInfo; #endif @@ -113,14 +105,6 @@ public: Fl_X *next; // chain of mapped windows static Fl_X* first; static Fl_X* i(const Fl_Window* w) {return (Fl_X*)w->i;} - // Cocoa additions - 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); }; extern Window fl_window; -- cgit v1.2.3