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

107 views
Skip to first unread message

Daniel Neos

unread,
Aug 4, 2016, 4:19:30 PM8/4/16
to osg-...@lists.openscenegraph.org
Hi,

In my application, at the very first beginning, I want to check which openGL version the user has before creating/doing anything openGL related.

For example the user can have a very poor openGL version(or remote Desktop only supports openGL 1.1), then I want to check the openGL version first and shut down the application, if necessary.

How can I achieve the openGL version with openscenegraph the most easy way? I tried the osg::getGLVersion() but I certainly need a kind of context first.

How can I get such a context without creating windows to yield the supported openGL version?


Thank you!

Cheers,
Daniel

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68280#68280





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Jannik Heller

unread,
Aug 5, 2016, 11:32:17 AM8/5/16
to osg-...@lists.openscenegraph.org

Robert Osfield

unread,
Aug 5, 2016, 12:05:50 PM8/5/16
to OpenSceneGraph Users
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.
Reply all
Reply to author
Forward
0 new messages