Page 1 of 1

Is there a way to get GL_VERSION?

Posted: Thu Dec 30, 2021 7:24 pm
by kubatp
I know about Root.RenderSystem.DriverVersion but is a different thing.

Re: Is there a way to get GL_VERSION?

Posted: Thu Dec 30, 2021 8:34 pm
by paroj
should be the same - from the log:

Code: Select all

GL_VERSION = 4.6.0.0
GL_VENDOR = NVIDIA Corporation
...
RenderSystem capabilities
-------------------------
GPU Vendor: nvidia
Driver Version: 4.6.0.0

Re: Is there a way to get GL_VERSION?

Posted: Fri Dec 31, 2021 8:36 am
by kubatp
paroj wrote: Thu Dec 30, 2021 8:34 pm should be the same - from the log:

Code: Select all

GL_VERSION = 4.6.0.0
GL_VENDOR = NVIDIA Corporation
...
RenderSystem capabilities
-------------------------
GPU Vendor: nvidia
Driver Version: 4.6.0.0
It is not. For example my log:

Code: Select all

19:10:22: GL_VERSION = 4.6.0 NVIDIA 462.59
19:10:22: GL_VENDOR = NVIDIA Corporation
19:10:22: GL_RENDERER = Quadro P2000/PCIe/SSE2

...

19:10:22: GPU Vendor: nvidia
19:10:22: Device Name: Quadro P2000/PCIe/SSE2
19:10:22: Driver Version: 4.6.0.0
The number 462.59 is the actual vendor's driver version.

Re: Is there a way to get GL_VERSION?

Posted: Fri Dec 31, 2021 3:39 pm
by paroj
but you said, you want GL_VERSION, which is 4.6.0. The part after that is optional:
https://www.khronos.org/registry/OpenGL ... ring.xhtml

Re: Is there a way to get GL_VERSION?

Posted: Mon Jan 03, 2022 8:03 pm
by kubatp
paroj wrote: Fri Dec 31, 2021 3:39 pm but you said, you want GL_VERSION, which is 4.6.0. The part after that is optional:
https://www.khronos.org/registry/OpenGL ... ring.xhtml
I see. So there is no OGRE method to get this whole string? I need to call native OpenGl method?

Re: Is there a way to get GL_VERSION?

Posted: Mon Jan 03, 2022 10:57 pm
by paroj
no, currently there is none.

However, feel free to contribute a GL_VERSION parser, if you happen to write one.

Some testdata for that: https://opengl.gpuinfo.org/