diff options
| author | Manolo Gouy <Manolo> | 2016-05-09 16:10:54 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-05-09 16:10:54 +0000 |
| commit | cc35e003eb62d088745b0108af6312885648dd2c (patch) | |
| tree | 649935c724dd8a2f301fe5bc743f74221c81a88b /FL | |
| parent | 2dacc9a1db09a72a46271e02fb2b329255e5bd47 (diff) | |
Move GL-related member functions from class Fl_Cocoa_Screen_Driver to class Fl_Cocoa_Gl_Window_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Gl_Window_Driver.H | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/FL/Fl_Gl_Window_Driver.H b/FL/Fl_Gl_Window_Driver.H index d94d117fd..99da5408e 100644 --- a/FL/Fl_Gl_Window_Driver.H +++ b/FL/Fl_Gl_Window_Driver.H @@ -86,6 +86,14 @@ public: }; #ifdef FL_CFG_GFX_QUARTZ +#ifdef __OBJC__ +@class NSOpenGLPixelFormat; +@class NSOpenGLContext; +#else +class NSOpenGLPixelFormat; +class NSOpenGLContext; +#endif // __OBJC__ + class Fl_Cocoa_Gl_Window_Driver : public Fl_Gl_Window_Driver { friend class Fl_Gl_Window_Driver; Fl_Cocoa_Gl_Window_Driver(Fl_Gl_Window *win) : Fl_Gl_Window_Driver(win) {} @@ -106,6 +114,12 @@ class Fl_Cocoa_Gl_Window_Driver : public Fl_Gl_Window_Driver { virtual void redraw_overlay(); virtual void gl_start(); virtual void draw_string(const char* str, int n); + static NSOpenGLContext* create_GLcontext_for_window(NSOpenGLPixelFormat *pixelformat, NSOpenGLContext *shared_ctx, Fl_Window *window); + static NSOpenGLPixelFormat *mode_to_NSOpenGLPixelFormat(int mode, const int*); // uses Objective-c + static void GLcontext_update(NSOpenGLContext*); // uses Objective-c + static void GLcontext_release(NSOpenGLContext*); // uses Objective-c + static void GLcontext_makecurrent(NSOpenGLContext*); // uses Objective-c + static void GL_cleardrawable(void); // uses Objective-c }; #endif // FL_CFG_GFX_QUARTZ |
