[osg-users] Get openGL version with the Help of osg

Robert Osfield robert.osfield at gmail.com
Fri Aug 5 09:05:42 PDT 2016


Daniel,

You can use a custom realize operation to do OpenGL checks when the
viewer creates the graphics windows for the first time.  The osgvolume
example uses this approach to check 3D texture sizes, you could eaily
add in the version check here.

Robert.

On 5 August 2016 at 16:32, Jannik Heller <scrawl at baseoftrash.de> wrote:
> Hi,
>
> Unfortunately OpenGL doesn't support getting the supported version without creating a context first.
>
> https://gamedev.stackexchange.com/questions/28451/how-do-i-properly-check-if-a-particular-opengl-version-is-available
>
> https://stackoverflow.com/questions/12184506/why-does-glgetstringgl-version-return-null-zero-instead-of-the-opengl-versio
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68294#68294
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list