diff options
author | Kenneth Russel <[email protected]> | 2006-07-10 20:18:26 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-07-10 20:18:26 +0000 |
commit | a0c04406276133db40cd39799a0f845369385400 (patch) | |
tree | d9ce03523d051be40d49b546844cb60d0554b7ce /src/classes/com/sun/opengl/impl/windows | |
parent | 67cf653d9a50a04a734c7cb4494392bc2687582c (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/windows')
-rw-r--r-- | src/classes/com/sun/opengl/impl/windows/WindowsGLDrawableFactory.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawableFactory.java b/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawableFactory.java index 94fd0eb1e..dada5d0c3 100644 --- a/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawableFactory.java +++ b/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawableFactory.java @@ -40,6 +40,7 @@ package com.sun.opengl.impl.windows; import java.awt.Component; +import java.awt.Graphics; import java.awt.Rectangle; import java.nio.*; import java.util.*; @@ -222,6 +223,15 @@ public class WindowsGLDrawableFactory extends GLDrawableFactoryImpl { public void unlockAWTForJava2D() { } + public boolean canCreateContextOnJava2DSurface() { + return false; + } + + public GLContext createContextOnJava2DSurface(Graphics g) + throws GLException { + throw new GLException("Unimplemented on this platform"); + } + //------------------------------------------------------ // Gamma-related functionality // |