diff options
author | Sven Gothel <[email protected]> | 2010-11-25 18:53:48 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-25 18:53:48 +0100 |
commit | 2aa90676e4954269f86ec23b39e638b12e178e92 (patch) | |
tree | b65426b867b68fae2e7a5675b6b6ab674b38107f /src/jogl/classes/com/jogamp/opengl/JoglVersion.java | |
parent | d1d10e7eeb2a46acf16ae125395e95189e011f1f (diff) |
Refined VersionInfo usage
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/JoglVersion.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/JoglVersion.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java index 8bd3c4777..ae650d059 100644 --- a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java +++ b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java @@ -28,10 +28,12 @@ package com.jogamp.opengl; +import com.jogamp.common.GlueGenVersion; import javax.media.opengl.*; import com.jogamp.common.os.Platform; import com.jogamp.common.util.VersionUtil; import com.jogamp.common.util.JogampVersion; +import com.jogamp.nativewindow.NativeWindowVersion; import java.util.jar.Manifest; public class JoglVersion extends JogampVersion { @@ -56,12 +58,8 @@ public class JoglVersion extends JogampVersion { } public StringBuffer toString(GL gl, StringBuffer sb) { - sb = super.toString(sb); - + sb = super.toString(sb).append(Platform.getNewline()); getGLInfo(gl, sb); - sb.append("-----------------------------------------------------------------------------------------------------"); - sb.append(Platform.getNewline()); - return sb; } @@ -74,6 +72,7 @@ public class JoglVersion extends JogampVersion { sb = new StringBuffer(); } + sb.append(VersionUtil.SEPERATOR).append(Platform.getNewline()); sb.append("Default Desktop ").append(GLProfile.getDefaultDesktopDevice().getConnection()).append(": ").append(GLProfile.glAvailabilityToString(GLProfile.getDefaultDesktopDevice())); sb.append(Platform.getNewline()); sb.append("Default EGL ").append(GLProfile.getDefaultEGLDevice().getConnection()).append(": ").append(GLProfile.glAvailabilityToString(GLProfile.getDefaultEGLDevice())); @@ -92,12 +91,15 @@ public class JoglVersion extends JogampVersion { sb.append(Platform.getNewline()); sb.append(" ").append(gl.glGetString(gl.GL_EXTENSIONS)); sb.append(Platform.getNewline()); + sb.append(VersionUtil.SEPERATOR); return sb; } public static void main(String args[]) { System.err.println(VersionUtil.getPlatformInfo()); + System.err.println(GlueGenVersion.getInstance()); + System.err.println(NativeWindowVersion.getInstance()); System.err.println(JoglVersion.getInstance()); } } |