diff options
author | Silenio Quarti <Silenio_Quarti@ca.ibm.com> | 2011-09-07 14:18:44 -0400 |
---|---|---|
committer | Silenio Quarti <Silenio_Quarti@ca.ibm.com> | 2011-09-07 14:18:44 -0400 |
commit | 4222a621d2928b548c2e30cc0978e442beedb1d5 (patch) | |
tree | a1c67627e9c0255f6985e358bfb9c500f3a837c8 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse | |
parent | 4f704108b0528d9c77c54499cc20715a8573c665 (diff) | |
download | eclipse.platform.swt-4222a621d2928b548c2e30cc0978e442beedb1d5.tar.gz eclipse.platform.swt-4222a621d2928b548c2e30cc0978e442beedb1d5.tar.xz eclipse.platform.swt-4222a621d2928b548c2e30cc0978e442beedb1d5.zip |
Bug 343331 - [Mac] GLCanvas draws on top of fast views
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse')
3 files changed, 17 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras index 8c1c2bd8a5..265e3e613f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras @@ -2119,6 +2119,11 @@ <method selector="makeCurrentContext" swt_gen="true"> <retval swt_gen="true"></retval> </method> + <method selector="setValues:forParameter:" swt_gen="true"> + <arg swt_gen="true" swt_java_type="int[]"></arg> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="setView:" swt_gen="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> @@ -4800,6 +4805,8 @@ <enum name="NSNormalWindowLevel" swt_gen="true"></enum> <enum name="NSOffState" swt_gen="true"></enum> <enum name="NSOnState" swt_gen="true"></enum> + <enum name="NSOpenGLCPSurfaceOrder" swt_gen="true"></enum> + <enum name="NSOpenGLCPSwapInterval" swt_gen="true"></enum> <enum name="NSOpenGLPFAAccumSize" swt_gen="true"></enum> <enum name="NSOpenGLPFAAlphaSize" swt_gen="true"></enum> <enum name="NSOpenGLPFAColorSize" swt_gen="true"></enum> diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOpenGLContext.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOpenGLContext.java index fd688df582..d03cb56fa2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOpenGLContext.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOpenGLContext.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -50,6 +50,10 @@ public void makeCurrentContext() { OS.objc_msgSend(this.id, OS.sel_makeCurrentContext); } +public void setValues(int[] vals, int param) { + OS.objc_msgSend(this.id, OS.sel_setValues_forParameter_, vals, param); +} + public void setView(NSView view) { OS.objc_msgSend(this.id, OS.sel_setView_, view != null ? view.id : 0); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index 0ba6ac949b..29f1098290 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -1987,6 +1987,7 @@ public static final int /*long*/ sel_setUsesThreadedAnimation_ = sel_registerNam public static final int /*long*/ sel_setValue_forHTTPHeaderField_ = sel_registerName("setValue:forHTTPHeaderField:"); public static final int /*long*/ sel_setValue_forKey_ = sel_registerName("setValue:forKey:"); public static final int /*long*/ sel_setValueWraps_ = sel_registerName("setValueWraps:"); +public static final int /*long*/ sel_setValues_forParameter_ = sel_registerName("setValues:forParameter:"); public static final int /*long*/ sel_setVerticalScroller_ = sel_registerName("setVerticalScroller:"); public static final int /*long*/ sel_setView_ = sel_registerName("setView:"); public static final int /*long*/ sel_setVisible_ = sel_registerName("setVisible:"); @@ -2332,6 +2333,8 @@ public static final int NSNonactivatingPanelMask = 128; public static final int NSNormalWindowLevel = 0; public static final int NSOffState = 0; public static final int NSOnState = 1; +public static final int NSOpenGLCPSurfaceOrder = 235; +public static final int NSOpenGLCPSwapInterval = 222; public static final int NSOpenGLPFAAccumSize = 14; public static final int NSOpenGLPFAAlphaSize = 11; public static final int NSOpenGLPFAColorSize = 8; @@ -4047,6 +4050,8 @@ public static final native int /*long*/ objc_msgSend(int /*long*/ id, int /*long /** @method flags=cast */ public static final native int /*long*/ objc_msgSend(int /*long*/ id, int /*long*/ sel, int[] /*long[]*/ arg0, int arg1, int arg2); /** @method flags=cast */ +public static final native int /*long*/ objc_msgSend(int /*long*/ id, int /*long*/ sel, int[] arg0, int arg1); +/** @method flags=cast */ public static final native int objc_msgSend(int id, int sel, float arg0); /** @method flags=cast */ public static final native long objc_msgSend(long id, long sel, int arg0); |