Get GL_RENDERER string without calling OpenGL

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
JohnMH
Posts: 2
Joined: Sat Jun 11, 2016 2:05 am
Contact:

Get GL_RENDERER string without calling OpenGL

Post by JohnMH »

I'm writing platform independent code where I want to be able to get the full vendor string and put it into a native UI element.

I have found that I can access GL_VENDOR using irrDevice->getVideoDriver()->getVendorInfo().c_str()

Is it possible to do something like this using GL_RENDERER? Looking through the current source, it seems like there is not.
(See Line 234 of COpenGLDriver.cpp)

I would like to keep from calling GL myself if possible. I also support D3D on Windows.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Get GL_RENDERER string without calling OpenGL

Post by hendu »

In this case, calling glGetWhatever after the context is set up is perfectly safe, because it doesn't change GL state. Otherwise you'd need to wait for that abstraction to be added.
JohnMH
Posts: 2
Joined: Sat Jun 11, 2016 2:05 am
Contact:

Re: Get GL_RENDERER string without calling OpenGL

Post by JohnMH »

I guess that leaves me with two questions then.

Is the GL context still set after createDeviceEx is called?
Post Reply