summaryrefslogtreecommitdiff
path: root/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-28 17:06:00 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-28 17:06:00 +0200
commitc2efb0d8494b101d9700afc79302fcf371995a6e (patch)
treebd18b6ba6d706e2cd638a45fee43dce61a92af60 /src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
parent7d58e2385452b8373448e3f91013a8cda39c7aa3 (diff)
macOS: support of FLTK widgets in OpenGL 3 windows - cont'd.
This code is OK under macOS 10 9 and 13.
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
index d6f7534c2..16cea4e67 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
+++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
@@ -36,6 +36,7 @@ class Fl_Window;
@class FLWindow;
@class NSOpenGLContext;
@class NSOpenGLPixelFormat;
+@class NSView;
#else
class CALayer;
class NSCursor;
@@ -43,6 +44,7 @@ class NSImage;
class FLWindow;
class NSOpenGLContext;
class NSOpenGLPixelFormat;
+class NSView;
#endif // __OBJC__
/**
@@ -155,7 +157,8 @@ public:
static void GL_cleardrawable(void); // uses Objective-c
static void gl_start(NSOpenGLContext*); // uses Objective-c
static void remove_gl_context_opacity(NSOpenGLContext*); // uses Objective-c
- NSOpenGLContext *gl1ctxt_create(); // uses Objective-c
+ NSOpenGLContext *gl1ctxt_create(NSView **); // uses Objective-c
+ void gl1ctxt_add(NSOpenGLContext*, NSView*); // uses Objective-c
static void gl1ctxt_resize(NSOpenGLContext*); // uses Objective-c
//icons