Is this the function you're looking for?

osgViewer::GraphicsHandleWin32::getWGLContext
<http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00355.html#abbf6db2b0a8d14f825dd43435862a941>()


I am having some trouble (despite the powers of Google) to find any OSG
example code using getWGLContext()

Christian


2017-11-10 14:33 GMT+01:00 Poojan Prabhu <poojanpro...@gmail.com>:

> Hi,
>
> We are using shared context, but have custom drawables that use Vertex
> Array Objects. This causes a problem in the case of multiple windows (where
> each is a separate gl context).
>
> We can manage/create vaos depending on the gl context id that we are
> currently rendering with.
>
> But, we can't use context id as reported by render info, because that
> represents the shared context id and not the HGLRC
>
> Prefer to avoid wglGetCurrentContext in each draw call obviously. And we
> _do_ want to use shared contexts.
>
> How can we work around this so that we have access to the HGLRC or an id
> representing it?
>
> Thank you!
>
> Cheers,
> Poojan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72358#72358
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to