diff options
author | Sven Gothel <[email protected]> | 2011-07-31 20:38:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-31 20:38:09 +0200 |
commit | 3349511aeb68c1228e420b3c1ea1758bb75d3e03 (patch) | |
tree | c149972fb20257f5e769fa3c3e25f93442b84709 /src/newt/classes/com/jogamp | |
parent | d15b941d707bc286d0c33a1ead9464028e9a6c37 (diff) |
GLWindow::main(): show requested/chosen GLCaps
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java index d8eda923a..95c994d6e 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -876,13 +876,13 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC System.err.println(JoglVersion.getInstance()); System.err.println(NewtVersion.getInstance()); - GLProfile glp = GLProfile.getDefault(); - GLDrawableFactory factory = GLDrawableFactory.getFactory(glp); - List/*<GLCapabilitiesImmutable>*/ availCaps = factory.getAvailableCapabilities(null); + final GLProfile glp = GLProfile.getDefault(); + final GLDrawableFactory factory = GLDrawableFactory.getFactory(glp); + final List/*<GLCapabilitiesImmutable>*/ availCaps = factory.getAvailableCapabilities(null); for(int i=0; i<availCaps.size(); i++) { System.err.println(availCaps.get(i)); } - GLCapabilitiesImmutable caps = new GLCapabilities( glp ); + final GLCapabilitiesImmutable caps = new GLCapabilities( glp ); GLWindow glWindow = GLWindow.create(caps); glWindow.setSize(128, 128); @@ -891,6 +891,8 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC public void init(GLAutoDrawable drawable) { GL gl = drawable.getGL(); System.err.println(JoglVersion.getGLInfo(gl, null)); + System.err.println("Requested: "+drawable.getNativeSurface().getGraphicsConfiguration().getRequestedCapabilities()); + System.err.println("Chosen : "+drawable.getChosenGLCapabilities()); } public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { |