Hi

> So when the window is not visible, I would prefer to pause the rendering
of the model instead of destroying it.

You can control the rendering loop by calling viewer->frame() whenever you
need. In some sort of similar application in the past I used timer to
render the frame and when not needed I killed the timer and reset when
needed again. If you are under windows you can send messages like
WM_SHOW/WM_HIDE directly to your HWND or set the windows style WS_VISIBLE,
that how I controlled the visibility of the window

Nick


On Tue, May 27, 2014 at 4:22 PM, Marco Kliko <marco_kl...@hotmail.com>wrote:

> Daniel,
>
> Thanks for sharing your thought.
> But these widgets are implemented inside a Qt-enivronment application.
> Am I right?
> The environment of the application I am working with doesn't allow adding
> a widget in the window.
> It's a sort of selfmade environment that's why I want to put the
> OSG-window on top of my application.
>
> I hope you understand what I mean.
>
> Thanks a lot in advance,
>
> Marco
>
>
> Daniel Trstenjak wrote:
> > Hi Marco,
> >
> > I would directly search for OpenGL inside of the documentation for your
> toolkit.
> >
> > For Qt it's e.g.:
> http://qt-project.org/doc/qt-5/qtopengl-hellogl-example.html
> >
> >
> > Greetings,
> > Daniel
> > _______________________________________________
> > osg-users mailing list
> >
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >  ------------------
> > Post generated by Mail2Forum
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=59582#59582
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



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

Reply via email to