Hi Mattias,

The quickest way to graft and osgViewer::Viewer into an existing
graphics context is to use the GraphicsWindowEmbedded functionality.
See the osgviewerGLUT and osgviewerSDL examples for a guide.  Please
note that this approach doesn't allow the OSG to introduce threading,
handling of multiple graphics contexts or provide pbuffer support, but
it is at last very simple to implement.

Robert.

On Wed, Feb 25, 2009 at 10:42 AM, Mathias Franzius
<[email protected]> wrote:
> Dear ng,
>
> I'm lost with this osg beginner's problem: Given I have an active rendering 
> context (from glut or Qt etc.),
> and an osg group node holding my scene, how can I make osg render a view in 
> this rendering context?
> My current knowledge of osg is sufficient as long as I use the osg::Viewer 
> which brings its own context, but I need to use this 'external' one.
> A code snippet would of course be greatly appreciated! :)
>
> Thanks a lot!
>   Mathias
> ____________________________________________________________________
> Psssst! Schon vom neuen WEB.DE MultiMessenger gehört?
> Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to