aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerard Ziemski <[email protected]>2008-10-17 04:47:13 +0000
committerGerard Ziemski <[email protected]>2008-10-17 04:47:13 +0000
commitb523291498b05fc5cf17fc59e5f01795638c753a (patch)
tree01b7b1a06267ee0a5849d177505de8cdd2c4083c /src
parentbe3647b14ec597c655d82f673ccf6164c4243078 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/native/jogl/MacOSXWindowSystemInterface.m6
1 files changed, 6 insertions, 0 deletions
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;