On Dec 12, 2007 2:52 PM, Paul Martz <[EMAIL PROTECTED]> wrote: > However, my post below expressed concern that there was no way to access the > current contextID at a global level. There's no equivalent of > glXGetCurrentContext in OSG, for example. It seems like, if a context is > current in the active thread, OSG should provide a global method for > obtaining its contextID, analogous to what GLX, WGL, AGL, etc., all > provide...?
This feels like a case of "I need this for my particular code so OSG should have a core feature supporting it"... just so you personally can save a bit of coding. A contextID is pretty useless without more information about what the contextID is associated with - and the contextID can even be shared between contexts so its not even a unique way of determining what graphics context you are associated with. All the traversals that are tied to specific graphics contexts already have access to the osg::State object - both the cull and the draw, and this applies to whether you use SceneView, osgViewer, osgProducer or whatever you roll yourself. My feeling is that with a bit of consideration it should be easy to do what you want without grafting globals into the OSG. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

