aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-08-17 19:36:57 +0000
committerKenneth Russel <[email protected]>2005-08-17 19:36:57 +0000
commit08d7112b2948724e63881bf0cd5bb6d5f000248a (patch)
tree42e750b3f156ec942cbc1848d6f417342aa0fd6e /src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java
parent44120bea6928fded325a8100c9f4117b385964b6 (diff)
Added GLDrawableFactory.createExternalGLContext,
canCreateExternalGLDrawable and createExternalGLDrawable, needed for interacting with third-party libraries which use OpenGL. Need to have the addition of these methods approved by the expert group. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@347 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java')
-rwxr-xr-xsrc/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java b/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java
index d3c176fa8..8e97d5e0c 100755
--- a/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java
+++ b/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java
@@ -217,6 +217,18 @@ public class WindowsGLDrawableFactory extends GLDrawableFactoryImpl {
return (GLPbuffer) returnList.get(0);
}
+ public GLContext createExternalGLContext() {
+ return new WindowsExternalGLContext();
+ }
+
+ public boolean canCreateExternalGLDrawable() {
+ return true;
+ }
+
+ public GLDrawable createExternalGLDrawable() {
+ return new WindowsExternalGLDrawable();
+ }
+
public long dynamicLookupFunction(String glFuncName) {
long res = WGL.wglGetProcAddress(glFuncName);
if (res == 0) {