From b523291498b05fc5cf17fc59e5f01795638c753a Mon Sep 17 00:00:00 2001 From: Gerard Ziemski Date: Fri, 17 Oct 2008 04:47:13 +0000 Subject: add ability to set opacity on GL context: setCurrentContextOpacity takes 0 or 1 git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1775 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/native/jogl/MacOSXWindowSystemInterface.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3