Quantcast

getting OPEN GL version info from osgearth

classic Classic list List threaded Threaded
3 messages Options
JMussemann JMussemann
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

getting OPEN GL version info from osgearth

This might have already be answered, but I could not find it anywhere on the forums.

I wanted to the the opengl version information from osgeath, similar to the call to osgearth_version --caps, but programmatic without making a system call.

does the osgearth api expose this capability? I am main looking for a cross platform was to get opengl capabillities.

I am running osgearth  2.5

gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getting OPEN GL version info from osgearth

JMussemann,
Everything in "--caps" is accessible via the Capabilities API at:

osgEarth::Registry::capabilities()

Hope this helps.
Glenn Waldron / Pelican Mapping / @glennwaldron
JMussemann JMussemann
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getting OPEN GL version info from osgearth

yes, that was what I was looking for.

My actual code was

   const Capabilities& caps = osgEarth::Registry::instance()->getCapabilities();

Then i can get all I need from  caps.

Loading...