From 2aa90676e4954269f86ec23b39e638b12e178e92 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 25 Nov 2010 18:53:48 +0100 Subject: Refined VersionInfo usage --- src/newt/classes/com/jogamp/newt/NewtVersion.java | 4 ++++ src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/newt/classes/com/jogamp') diff --git a/src/newt/classes/com/jogamp/newt/NewtVersion.java b/src/newt/classes/com/jogamp/newt/NewtVersion.java index aee67c4bc..a38dca34c 100644 --- a/src/newt/classes/com/jogamp/newt/NewtVersion.java +++ b/src/newt/classes/com/jogamp/newt/NewtVersion.java @@ -28,8 +28,10 @@ package com.jogamp.newt; +import com.jogamp.common.GlueGenVersion; import com.jogamp.common.util.JogampVersion; import com.jogamp.common.util.VersionUtil; +import com.jogamp.nativewindow.NativeWindowVersion; import java.util.jar.Manifest; public class NewtVersion extends JogampVersion { @@ -55,6 +57,8 @@ public class NewtVersion extends JogampVersion { public static void main(String args[]) { System.err.println(VersionUtil.getPlatformInfo()); + System.err.println(GlueGenVersion.getInstance()); + System.err.println(NativeWindowVersion.getInstance()); System.err.println(NewtVersion.getInstance()); } } diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java index 0f96facbd..5531bf168 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -867,7 +867,7 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer { System.err.println(VersionUtil.getPlatformInfo()); System.err.println(GlueGenVersion.getInstance()); System.err.println(NativeWindowVersion.getInstance()); - System.err.print(JoglVersion.getInstance()); + System.err.println(JoglVersion.getInstance()); System.err.println(NewtVersion.getInstance()); GLCapabilitiesImmutable caps = new GLCapabilities( GLProfile.getDefault() ); @@ -877,7 +877,7 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer { glWindow.addGLEventListener(new GLEventListener() { public void init(GLAutoDrawable drawable) { GL gl = drawable.getGL(); - System.err.println(JoglVersion.getInstance().toString(gl)); + System.err.println(JoglVersion.getInstance().getGLInfo(gl, null)); } public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { -- cgit v1.2.3