aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-13 08:24:02 +0200
committerSven Gothel <[email protected]>2012-10-13 08:24:02 +0200
commitb98bb2d14d5d5ff96fd5c22f4f30bc685d86757b (patch)
treec0fb74cfce6e51f2f7893dae6ed69b059ee2ab16 /src/jogl/classes/com
parent61bb64aea9d8967f5360ba42fc9ec7a24b79683b (diff)
FBO ResetQuirk: Dump only brief information (OS, GL, JOGL sha1), the latter becomes public method to JoglVersion
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/JoglVersion.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java
index cdb4b82bb..52721e3f4 100644
--- a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java
+++ b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java
@@ -169,6 +169,23 @@ public class JoglVersion extends JogampVersion {
return sb;
}
+ public StringBuilder getBriefOSGLBuildInfo(GL gl, StringBuilder sb) {
+ if(null==sb) {
+ sb = new StringBuilder();
+ }
+ sb.append("OS: ").append(Platform.getOSName()).append(", version ").append(Platform.getOSVersion()).append(", arch ").append(Platform.getArchName());
+ sb.append(Platform.getNewline());
+ sb.append("GL_VENDOR ").append(gl.glGetString(GL.GL_VENDOR));
+ sb.append(Platform.getNewline());
+ sb.append("GL_RENDERER ").append(gl.glGetString(GL.GL_RENDERER));
+ sb.append(Platform.getNewline());
+ sb.append("GL_VERSION ").append(gl.glGetString(GL.GL_VERSION));
+ sb.append(Platform.getNewline());
+ sb.append("JOGL GIT sha1 ").append(getImplementationCommit());
+ sb.append(Platform.getNewline());
+ return sb;
+ }
+
public static void main(String args[]) {
System.err.println(VersionUtil.getPlatformInfo());
System.err.println(GlueGenVersion.getInstance());