How to get Nvidia driver version using jogl

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get Nvidia driver version using jogl

plumbus
Hi.
I'm trying to get the gpu driver version on runtime.
I'm a little confused about how to use jogl with simple java.
Can someone give me a code sample for this please?
I've been told to use GL_RENDERER, GL_VERSION, but I could not understand how.
Thanks ahead.
Reply | Threaded
Open this post in threaded view
|

Re: How to get Nvidia driver version using jogl

gouessej
Administrator
Hello

You can use GLContext.getCurrentGL().glGetString(GL.GL_VERSION), GLContext.getCurrentGL().glGetString(GL.GL_VENDOR) and GLContext.getCurrentGL().glGetString(GL.GL_RENDERER) to get this information.

You get this with the first one on an Nvidia GeForce RTX 2080:
4.6.0 NVIDIA 440.97

You can call these methods when the OpenGL context is current inside GLEventListener.display().

This is a rudimentary example I wrote:
https://jogamp.org/wiki/index.php/Rudimentary_standalone_example_using_the_fixed_pipeline_by_Julien_Gouesse
Julien Gouesse | Personal blog | Website