From 620745aae81afe5647029c3d81b04cf4328e8377 Mon Sep 17 00:00:00 2001
From: Kenneth Russel <kbrussel@alum.mit.edu>
Date: Sun, 27 Nov 2005 20:17:22 +0000
Subject: Added GLCapabilitiesChooser argument (currently ignored) to
 GLDrawableFactory.createGLPbuffer() based on JSR-231 expert group's feedback.
 Updated GLJPanel and demos.

git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@464 232f8b59-042b-4e1e-8c03-345bb8c30851
---
 src/classes/javax/media/opengl/GLDrawableFactory.java | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

(limited to 'src/classes/javax/media/opengl/GLDrawableFactory.java')

diff --git a/src/classes/javax/media/opengl/GLDrawableFactory.java b/src/classes/javax/media/opengl/GLDrawableFactory.java
index 39724c976..bc291331c 100644
--- a/src/classes/javax/media/opengl/GLDrawableFactory.java
+++ b/src/classes/javax/media/opengl/GLDrawableFactory.java
@@ -45,15 +45,17 @@ import com.sun.opengl.impl.*;
 /** <P> Provides a virtual machine- and operating system-independent
     mechanism for creating {@link GLDrawable}s. </P>
 
-    <P> The {@link javax.media.opengl.GLCapabilities} objects passed in to the
-    various factory methods are used as a hint for the properties of
-    the returned drawable. The default capabilities selection
-    algorithm (equivalent to passing in a null {@link
+    <P> The {@link javax.media.opengl.GLCapabilities} objects passed
+    in to the various factory methods are used as a hint for the
+    properties of the returned drawable. The default capabilities
+    selection algorithm (equivalent to passing in a null {@link
     GLCapabilitiesChooser}) is described in {@link
     DefaultGLCapabilitiesChooser}. Sophisticated applications needing
     to change the selection algorithm may pass in their own {@link
     GLCapabilitiesChooser} which can select from the available pixel
-    formats. </P>
+    formats. The GLCapabilitiesChooser mechanism may not be supported
+    by all implementations or on all platforms, in which case any
+    passed GLCapabilitiesChooser will be ignored. </P>
 
     <P> Because of the multithreaded nature of the Java platform's
     window system toolkit, it is typically not possible to immediately
@@ -186,6 +188,7 @@ public abstract class GLDrawableFactory {
    * Creates a GLPbuffer with the given capabilites and dimensions.
    */
   public abstract GLPbuffer createGLPbuffer(GLCapabilities capabilities,
+                                            GLCapabilitiesChooser chooser,
                                             int initialWidth,
                                             int initialHeight,
                                             GLContext shareWith);
-- 
cgit v1.2.3