diff options
author | Kenneth Russel <[email protected]> | 2005-07-19 02:16:34 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-07-19 02:16:34 +0000 |
commit | 08d481088925526964be39cbdd28cfc4ae828a86 (patch) | |
tree | ae92aa1d67237e43216c499204cd4db01f5a3da1 /src/net/java/games/jogl/impl | |
parent | 74adb7cc4ba59369964b562e3c84988f63025296 (diff) |
Added GLContext.getGLDrawable(). Made GLJPanel constructor protected
and GLJPanel non-final. Rechecked against original JSR-231 OpenGL
context handling proposal; the proposed APIs are now complete. The
necessary and desired changes need to be brought up with the expert
group.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@332 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl')
-rw-r--r-- | src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java | 4 | ||||
-rw-r--r-- | src/net/java/games/jogl/impl/windows/WindowsGLContext.java | 4 | ||||
-rw-r--r-- | src/net/java/games/jogl/impl/x11/X11GLContext.java | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java index 039194f9a..bd1253cc4 100644 --- a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java +++ b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java @@ -64,6 +64,10 @@ public abstract class MacOSXGLContext extends GLContextImpl return new MacOSXGLImpl(this); } + public GLDrawable getGLDrawable() { + return drawable; + } + protected String mapToRealGLFunctionName(String glFunctionName) { return glFunctionName; diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java index 532483c68..cfad7f3ac 100644 --- a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java +++ b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java @@ -75,6 +75,10 @@ public class WindowsGLContext extends GLContextImpl { return new WindowsGLImpl(this); } + public GLDrawable getGLDrawable() { + return drawable; + } + protected String mapToRealGLFunctionName(String glFunctionName) { String lookup = (String) functionNameMap.get(glFunctionName); if (lookup != null) { diff --git a/src/net/java/games/jogl/impl/x11/X11GLContext.java b/src/net/java/games/jogl/impl/x11/X11GLContext.java index 97f1b3593..451997a73 100644 --- a/src/net/java/games/jogl/impl/x11/X11GLContext.java +++ b/src/net/java/games/jogl/impl/x11/X11GLContext.java @@ -76,6 +76,10 @@ public abstract class X11GLContext extends GLContextImpl { return new X11GLImpl(this); } + public GLDrawable getGLDrawable() { + return drawable; + } + protected String mapToRealGLFunctionName(String glFunctionName) { String lookup = (String) functionNameMap.get(glFunctionName); if (lookup != null) { |