diff options
author | Kenneth Russel <[email protected]> | 2005-11-09 23:40:41 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-11-09 23:40:41 +0000 |
commit | c01ade1249ca5175510a4d6a699ac0772c6b11d9 (patch) | |
tree | ac75b18ca28d586ddb80b9e17821022d5e69e8ab /src/gleem | |
parent | f35f87174f74988f1a2dbeab98b7529de0af3b36 (diff) |
Made public API changes discussed with expert group to make core JOGL
API more toolkit-agnostic:
1. Decoupled instantiation of GLCanvas and GLJPanel objects from the
GLDrawableFactory. GLCanvas and GLJPanel's constructors are now
public and the associated factory methods have been removed from
the GLDrawableFactory.
2. Changed the signature of GLDrawableFactory.
chooseGraphicsConfiguration() to accept and return marker
AbstractGraphicsDevice and AbstractGraphicsConfiguration
interfaces, respectively. Defined new AWTGraphicsDevice and
AWTGraphicsConfiguration wrapper classes simply wrapping the
associated objects. An SWT port could define similar wrapper
classes for its data types.
3. Allowed overriding of the specific GLDrawableFactory subclass
instantiated through GLDrawableFactory.getFactory() by setting the
system property "opengl.factory.class.name". For example, an SWT
port might swap itself in by specifying the following system
property on the command line:
-Dopengl.factory.class.name=com.ibm.swt.opengl.SWTGLDrawableFactory
Tested on Solaris/SPARC. Also fixed breakage on Solaris/SPARC due to
recent split of jogl native library into jogl and jogl_awt pieces.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@146 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/gleem')
-rw-r--r-- | src/gleem/TestExaminerViewer.java | 3 | ||||
-rw-r--r-- | src/gleem/TestHandleBox.java | 3 | ||||
-rw-r--r-- | src/gleem/TestMultiWin.java | 3 | ||||
-rw-r--r-- | src/gleem/TestTranslate1.java | 3 | ||||
-rw-r--r-- | src/gleem/TestTranslate2.java | 3 |
5 files changed, 5 insertions, 10 deletions
diff --git a/src/gleem/TestExaminerViewer.java b/src/gleem/TestExaminerViewer.java index 7e52992..d7e4734 100644 --- a/src/gleem/TestExaminerViewer.java +++ b/src/gleem/TestExaminerViewer.java @@ -143,8 +143,7 @@ public class TestExaminerViewer { } }); frame.setLayout(new BorderLayout()); - GLCanvas canvas = - GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); + GLCanvas canvas = new GLCanvas(); canvas.setSize(400, 400); canvas.addGLEventListener(new Listener()); frame.add(canvas, BorderLayout.CENTER); diff --git a/src/gleem/TestHandleBox.java b/src/gleem/TestHandleBox.java index e06d004..8df7fd6 100644 --- a/src/gleem/TestHandleBox.java +++ b/src/gleem/TestHandleBox.java @@ -133,8 +133,7 @@ public class TestHandleBox { } }); frame.setLayout(new BorderLayout()); - GLCanvas canvas = - GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); + GLCanvas canvas = new GLCanvas(); canvas.setSize(400, 400); canvas.addGLEventListener(new Listener()); frame.add(canvas, BorderLayout.CENTER); diff --git a/src/gleem/TestMultiWin.java b/src/gleem/TestMultiWin.java index 1a1fcf1..7d73583 100644 --- a/src/gleem/TestMultiWin.java +++ b/src/gleem/TestMultiWin.java @@ -142,8 +142,7 @@ public class TestMultiWin { } }); frame.setLayout(new BorderLayout()); - GLCanvas canvas = - GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); + GLCanvas canvas = new GLCanvas(); canvas.setSize(400, 400); canvas.addGLEventListener(new Listener()); frame.add(canvas, BorderLayout.CENTER); diff --git a/src/gleem/TestTranslate1.java b/src/gleem/TestTranslate1.java index b9eb81a..93a97d0 100644 --- a/src/gleem/TestTranslate1.java +++ b/src/gleem/TestTranslate1.java @@ -134,8 +134,7 @@ public class TestTranslate1 { } }); frame.setLayout(new BorderLayout()); - GLCanvas canvas = - GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); + GLCanvas canvas = new GLCanvas(); canvas.setSize(400, 400); canvas.addGLEventListener(new Listener()); frame.add(canvas, BorderLayout.CENTER); diff --git a/src/gleem/TestTranslate2.java b/src/gleem/TestTranslate2.java index 96f5684..e507b07 100644 --- a/src/gleem/TestTranslate2.java +++ b/src/gleem/TestTranslate2.java @@ -134,8 +134,7 @@ public class TestTranslate2 { } }); frame.setLayout(new BorderLayout()); - GLCanvas canvas = - GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); + GLCanvas canvas = new GLCanvas(); canvas.setSize(400, 400); canvas.addGLEventListener(new Listener()); frame.add(canvas, BorderLayout.CENTER); |