diff options
-rw-r--r-- | make/stub_includes/opengl/macosx-window-system.h | 1 | ||||
-rw-r--r-- | src/native/jogl/MacOSXWindowSystemInterface.m | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/make/stub_includes/opengl/macosx-window-system.h b/make/stub_includes/opengl/macosx-window-system.h index 0d3865350..ca2a9856a 100644 --- a/make/stub_includes/opengl/macosx-window-system.h +++ b/make/stub_includes/opengl/macosx-window-system.h @@ -21,6 +21,7 @@ Bool makeCurrentContext(void* nsContext); Bool clearCurrentContext(void* nsContext); Bool deleteContext(void* nsContext); Bool flushBuffer(void* nsContext); +void setCurrentContextOpacity(void* context, int opacity); void updateContext(void* nsContext); void copyContext(void* destContext, void* srcContext, int mask); diff --git a/src/native/jogl/MacOSXWindowSystemInterface.m b/src/native/jogl/MacOSXWindowSystemInterface.m index 9fbc4c006..5c02650b0 100644 --- a/src/native/jogl/MacOSXWindowSystemInterface.m +++ b/src/native/jogl/MacOSXWindowSystemInterface.m @@ -559,6 +559,12 @@ Bool flushBuffer(void* context) { return true; } +void setCurrentContextOpacity(void* context, int opacity) { + NSOpenGLContext *nsContext = (NSOpenGLContext*)context; + + [nsContext setValues:&opacity forParameter:NSOpenGLCPSurfaceOpacity]; +} + void updateContext(void* context) { NSOpenGLContext *nsContext = (NSOpenGLContext*)context; |