Hi forum,
If i declare a osgViewer::Viewer , how many Graphics Context does it return . I
read from somewhere that OSG creates separate context for each window.
Does it also return several contexts even if i declare
osgViewer::ViewerBase::setThreadingModel( osgViewer::ViewerBase::SingleThreaded
) ?
I need a single OSG/OpenGL context. Any idea how to extract it ?
I was thinking subclass the osg::GraphicsOperation and override the realize
operator where i shall get only one osg::GraphicsContext as follows:
Code:
void Context::operator() (osg::GraphicsContext *gc)
{
..............
..............
}
Is that the current context or i have to make it current with
gc->makeCurrent()?
I need to do some initialization for single OSG graphics context.
Thanks,
Sajjadul
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56712#56712
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org