Is there a way to get GL_VERSION?

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
kubatp
Gnome
Posts: 368
Joined: Tue Jan 06, 2009 1:12 pm
x 43

Is there a way to get GL_VERSION?

Post by kubatp »

I know about Root.RenderSystem.DriverVersion but is a different thing.
paroj
OGRE Team Member
OGRE Team Member
Posts: 2108
Joined: Sun Mar 30, 2014 2:51 pm
x 1134

Re: Is there a way to get GL_VERSION?

Post 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
kubatp
Gnome
Posts: 368
Joined: Tue Jan 06, 2009 1:12 pm
x 43

Re: Is there a way to get GL_VERSION?

Post 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.
paroj
OGRE Team Member
OGRE Team Member
Posts: 2108
Joined: Sun Mar 30, 2014 2:51 pm
x 1134

Re: Is there a way to get GL_VERSION?

Post 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
kubatp
Gnome
Posts: 368
Joined: Tue Jan 06, 2009 1:12 pm
x 43

Re: Is there a way to get GL_VERSION?

Post 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?
paroj
OGRE Team Member
OGRE Team Member
Posts: 2108
Joined: Sun Mar 30, 2014 2:51 pm
x 1134

Re: Is there a way to get GL_VERSION?

Post 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/