[COMMITTED] Print renderer version at startup

I was thinking it might be nice to have the renderer report what version it was using when it started up:





LWJGL


Index: LWJGLRenderer.java
--- LWJGLRenderer.java Base (BASE)
+++ LWJGLRenderer.java Locally Modified (Based On LOCAL)
@@ -118,6 +118,7 @@
 import com.jme.util.geom.BufferUtils;
 import com.jme.util.stat.StatCollector;
 import com.jme.util.stat.StatType;
+import org.lwjgl.Sys;
 
 /**
  * <code>LWJGLRenderer</code> provides an implementation of the
@@ -184,7 +185,7 @@
         this.width = width;
         this.height = height;
 
-        logger.info("LWJGLRenderer created. W:  " + width + "H: " + height);
+        logger.info("LWJGLRenderer created. W:  " + width + "H: " + height + "tVersion: " + Sys.getVersion() );
 
         capabilities = GLContext.getCapabilities();




JOGL


Index: JOGLRenderer.java
--- JOGLRenderer.java Base (BASE)
+++ JOGLRenderer.java Locally Modified (Based On LOCAL)
@@ -111,6 +111,7 @@
 import com.jme.util.geom.BufferUtils;
 import com.jme.util.stat.StatCollector;
 import com.jme.util.stat.StatType;
+import net.java.games.util.Version;
 
 /**
  * <code>JOGLRenderer</code> provides an implementation of the
@@ -185,7 +186,7 @@
         this.width = width;
         this.height = height;
 
-        logger.info("JOGLRenderer created. W:  " + width + "H: " + height);
+        logger.info("JOGLRenderer created. W:  " + width + "H: " + height + "tVersion: " + Version.getVersion() );
 
         queue = new RenderQueue(this);
         if (TextureState.getNumberOfTotalUnits() == -1)

Sounds like a good idea.



net.java.games.util.Version seems to be the JInput version tho, not jogl.

Runtime Version Information
Any Java Bindings for OpenGL implementation should include version information in its jar manifest file.  This information can then easily be accessed at runtime via the java.lang.Package API.  .....

http://download.java.net/media/jogl/builds/nightly/javadoc_public/

Index: src/com/jme/renderer/jogl/JOGLRenderer.java
===================================================================
--- src/com/jme/renderer/jogl/JOGLRenderer.java   (revision 4088)
+++ src/com/jme/renderer/jogl/JOGLRenderer.java   (working copy)
@@ -184,9 +184,10 @@
         this.capabilities = caps;
         this.width = width;
         this.height = height;
+       
+        logger.info("JOGLRenderer created. W:  " + width + "H: " + height + "tVersion: "
+                +Package.getPackage("javax.media.opengl").getImplementationVersion());
 
-        logger.info("JOGLRenderer created. W:  " + width + "H: " + height);
-
         queue = new RenderQueue(this);
         if (TextureState.getNumberOfTotalUnits() == -1)
             createTextureState(); // force units population