aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/x11
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-07-10 20:18:26 +0000
committerKenneth Russel <[email protected]>2006-07-10 20:18:26 +0000
commita0c04406276133db40cd39799a0f845369385400 (patch)
treed9ce03523d051be40d49b546844cb60d0554b7ce /src/classes/com/sun/opengl/impl/x11
parent67cf653d9a50a04a734c7cb4494392bc2687582c (diff)
Added code to support new entry points in
sun.java2d.opengl.CGLSurfaceData added by gziemski to enable the Java2D/JOGL bridge on Mac OS X. Currently untested. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@838 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/x11')
-rw-r--r--src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java b/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java
index 01141c121..a5a174236 100644
--- a/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java
+++ b/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java
@@ -40,6 +40,7 @@
package com.sun.opengl.impl.x11;
import java.awt.Component;
+import java.awt.Graphics;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
@@ -526,6 +527,15 @@ public class X11GLDrawableFactory extends GLDrawableFactoryImpl {
}
}
+ public boolean canCreateContextOnJava2DSurface() {
+ return false;
+ }
+
+ public GLContext createContextOnJava2DSurface(Graphics g)
+ throws GLException {
+ throw new GLException("Unimplemented on this platform");
+ }
+
//---------------------------------------------------------------------------
// Xinerama-related functionality
//