From 6ea02e2572c6c97d8bc90dedb7f887640c551b4f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 14 Nov 2010 08:36:25 +0100 Subject: GlueGen JogampVersion Adaption (getInfo -> toStringBuffer/toString) --- src/junit/com/jogamp/test/junit/util/DumpVersion.java | 2 +- .../classes/com/jogamp/nativewindow/NativeWindowVersion.java | 2 +- src/newt/classes/com/jogamp/newt/NewtVersion.java | 2 +- src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/junit/com/jogamp/test/junit/util/DumpVersion.java b/src/junit/com/jogamp/test/junit/util/DumpVersion.java index beefa4aaf..25b1fe86a 100644 --- a/src/junit/com/jogamp/test/junit/util/DumpVersion.java +++ b/src/junit/com/jogamp/test/junit/util/DumpVersion.java @@ -38,7 +38,7 @@ public class DumpVersion implements GLEventListener { public void init(GLAutoDrawable drawable) { GL gl = drawable.getGL(); - System.err.println(JoglVersion.getInstance().getInfo(gl, null)); + System.err.println(JoglVersion.getInstance().toString(gl)); } public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java index a3dee0d07..55757fc42 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowVersion.java @@ -55,6 +55,6 @@ public class NativeWindowVersion extends JogampVersion { } public static void main(String args[]) { - System.err.println(NativeWindowVersion.getInstance().getInfo(null)); + System.err.println(NativeWindowVersion.getInstance()); } } diff --git a/src/newt/classes/com/jogamp/newt/NewtVersion.java b/src/newt/classes/com/jogamp/newt/NewtVersion.java index ad173605c..2493787d7 100644 --- a/src/newt/classes/com/jogamp/newt/NewtVersion.java +++ b/src/newt/classes/com/jogamp/newt/NewtVersion.java @@ -55,6 +55,6 @@ public class NewtVersion extends JogampVersion { } public static void main(String args[]) { - System.err.println(NewtVersion.getInstance().getInfo(null)); + 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 714fe20f2..2f5841b7e 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -849,10 +849,10 @@ public class GLWindow implements GLAutoDrawable, Window { * A most simple JOGL AWT test entry */ public static void main(String args[]) { - System.err.println(GlueGenVersion.getInstance().getInfo(null)); - System.err.println(NativeWindowVersion.getInstance().getInfo(null)); - System.err.print(JoglVersion.getInstance().getInfo(null)); - System.err.println(NewtVersion.getInstance().getInfo(null)); + System.err.println(GlueGenVersion.getInstance()); + System.err.println(NativeWindowVersion.getInstance()); + System.err.print(JoglVersion.getInstance()); + System.err.println(NewtVersion.getInstance()); GLCapabilities caps = new GLCapabilities( GLProfile.getDefault() ); GLWindow glWindow = GLWindow.create(caps); @@ -861,7 +861,7 @@ public class GLWindow implements GLAutoDrawable, Window { glWindow.addGLEventListener(new GLEventListener() { public void init(GLAutoDrawable drawable) { GL gl = drawable.getGL(); - System.err.println(JoglVersion.getInstance().getGLInfo(gl, null)); + System.err.println(JoglVersion.getInstance().toString(gl)); } public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { -- cgit v1.2.3